summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2006-05-09 20:18:05 +0000
committermrg <mrg@NetBSD.org>2006-05-09 20:18:05 +0000
commit5b913d05d1629e2b06fd1a5e02bd884102cc8c48 (patch)
tree1c907c948c72ca6ab00c6bd287b54f2e6af9aba1 /hunt
parentab5f63d11e6d35ff0b8e699368a024a0734660c4 (diff)
downloadbsdgames-darwin-5b913d05d1629e2b06fd1a5e02bd884102cc8c48.tar.gz
bsdgames-darwin-5b913d05d1629e2b06fd1a5e02bd884102cc8c48.tar.zst
bsdgames-darwin-5b913d05d1629e2b06fd1a5e02bd884102cc8c48.zip
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c6
-rw-r--r--hunt/huntd/answer.c6
-rw-r--r--hunt/huntd/driver.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index 48e717b7..e9dd1408 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.23 2004/11/05 21:30:32 dsl Exp $ */
+/* $NetBSD: hunt.c,v 1.24 2006/05/09 20:18:06 mrg Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.23 2004/11/05 21:30:32 dsl Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.24 2006/05/09 20:18:06 mrg Exp $");
#endif /* not lint */
# include <sys/param.h>
@@ -412,7 +412,7 @@ list_drivers()
u_short port_num;
static SOCKET test;
int test_socket;
- int namelen;
+ socklen_t namelen;
char local_name[MAXHOSTNAMELEN + 1];
static int initial = TRUE;
static struct in_addr local_address;
diff --git a/hunt/huntd/answer.c b/hunt/huntd/answer.c
index 20371629..0759f750 100644
--- a/hunt/huntd/answer.c
+++ b/hunt/huntd/answer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: answer.c,v 1.7 2004/11/05 21:30:32 dsl Exp $ */
+/* $NetBSD: answer.c,v 1.8 2006/05/09 20:18:06 mrg Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: answer.c,v 1.7 2004/11/05 21:30:32 dsl Exp $");
+__RCSID("$NetBSD: answer.c,v 1.8 2006/05/09 20:18:06 mrg Exp $");
#endif /* not lint */
# include <ctype.h>
@@ -55,7 +55,7 @@ answer()
static char name[NAMELEN];
static char team;
static int enter_status;
- static int socklen;
+ static socklen_t socklen;
static u_long machine;
static u_int32_t uid;
static SOCKET sockstruct;
diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c
index 1ca803e8..9deaa525 100644
--- a/hunt/huntd/driver.c
+++ b/hunt/huntd/driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: driver.c,v 1.10 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: driver.c,v 1.11 2006/05/09 20:18:06 mrg Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.10 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: driver.c,v 1.11 2006/05/09 20:18:06 mrg Exp $");
#endif /* not lint */
# include <sys/ioctl.h>
@@ -90,7 +90,7 @@ main(ac, av, ep)
# ifdef INTERNET
u_short msg;
short port_num, reply;
- int namelen;
+ socklen_t namelen;
SOCKET test;
# endif
static FLAG first = TRUE;
@@ -261,7 +261,7 @@ init()
# ifdef INTERNET
SOCKET test_port;
int msg;
- int len;
+ socklen_t len;
# endif
# ifndef DEBUG
@@ -896,7 +896,7 @@ send_stats()
FILE *fp;
int s;
SOCKET sockstruct;
- int socklen;
+ socklen_t socklen;
/*
* Get the output stream ready