summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-08-07 21:59:32 -0700
committerRuss Allbery <rra@stanford.edu>2008-08-07 21:59:32 -0700
commit97c7eaba1ff73e00eb50c810948b4e9c3a2b909e (patch)
tree120667181a820aaa9f91fa0bd9f501eaedf4bd7c /php
parent1528e68451b1f032ea9b2371bae6ee7f8cb682da (diff)
Use the correct data type when parsing numeric arguments
Diffstat (limited to 'php')
-rw-r--r--php/php_remctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/php_remctl.c b/php/php_remctl.c
index 9cb56e0..ef2caf9 100644
--- a/php/php_remctl.c
+++ b/php/php_remctl.c
@@ -93,7 +93,7 @@ ZEND_FUNCTION(remctl)
HashPosition pos;
char *host, *principal = NULL;
const char **command = NULL;
- unsigned short port;
+ long port;
int hlen, plen, count, i, status;
int success = 0;
struct remctl_result *result = NULL;
@@ -223,7 +223,7 @@ ZEND_FUNCTION(remctl_open)
zval *zrem;
char *host;
char *principal = NULL;
- unsigned short port = 0;
+ long port = 0;
int hlen, plen, status;
/* Parse and verify arguments. */