summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwrog <wrog>2007-11-12 11:00:18 (GMT)
committerwrog <wrog>2007-11-12 11:00:18 (GMT)
commit480dd1eb952008ee52fc616e15d436e0a06a8ebd (patch)
treeb7955725cf0663c4c2f0d9f3d3fe382a3fd890ca
parenta9dd72815ef9f6a015d8f42abfa1a55f599a645a (diff)
downloadmoo-480dd1eb952008ee52fc616e15d436e0a06a8ebd.zip
moo-480dd1eb952008ee52fc616e15d436e0a06a8ebd.tar.gz
moo-480dd1eb952008ee52fc616e15d436e0a06a8ebd.tar.bz2
moo-480dd1eb952008ee52fc616e15d436e0a06a8ebd.tar.xz
fix unsigned-ness compiler warning
-rw-r--r--net_bsd_tcp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/net_bsd_tcp.c b/net_bsd_tcp.c
index 99a111b..d48769e 100644
--- a/net_bsd_tcp.c
+++ b/net_bsd_tcp.c
@@ -106,7 +106,7 @@ proto_make_listener(Var desc, int *fd, Var * canon, const char **name)
return e;
}
if (port == 0) {
- int length = sizeof(address);
+ size_t length = sizeof(address);
if (getsockname(s, (struct sockaddr *) &address, &length) < 0) {
log_perror("Discovering local port number");
@@ -139,7 +139,7 @@ proto_accept_connection(int listener_fd, int *read_fd, int *write_fd,
int timeout = server_int_option("name_lookup_timeout", 5);
int fd;
struct sockaddr_in address;
- int addr_length = sizeof(address);
+ size_t addr_length = sizeof(address);
static Stream *s = 0;
if (!s)
@@ -199,7 +199,8 @@ proto_open_connection(Var arglist, int *read_fd, int *write_fd,
static const char *host_name;
static int port;
static Timer_ID id;
- int s, result, length;
+ size_t length;
+ int s, result;
int timeout = server_int_option("name_lookup_timeout", 5);
static struct sockaddr_in addr;
static Stream *st1 = 0, *st2 = 0;
@@ -296,6 +297,9 @@ char rcsid_net_bsd_tcp[] = "$Id$";
/*
* $Log$
+ * Revision 1.5 2007/11/12 11:00:18 wrog
+ * fix unsigned-ness compiler warning
+ *
* Revision 1.4 2004/05/22 01:25:43 wrog
* merging in WROGUE changes (W_SRCIP, W_STARTUP, W_OOB)
*