summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/identd/openbsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/identd/openbsd.c b/libexec/identd/openbsd.c
index f6a66dbd892..c32a2fe9b10 100644
--- a/libexec/identd/openbsd.c
+++ b/libexec/identd/openbsd.c
@@ -4,7 +4,7 @@
*
* Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
*
- * $Id: openbsd.c,v 1.11 1998/06/10 09:01:51 deraadt Exp $
+ * $Id: openbsd.c,v 1.12 1998/06/23 11:38:41 deraadt Exp $
* This version elminates the kmem search in favour of a kernel sysctl to
* get the user id associated with a connection - Bob Beck <beck@obtuse.com>
*/
@@ -15,6 +15,7 @@
#include <sys/sysctl.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include <netinet/in.h>
@@ -45,7 +46,7 @@ k_getuid(faddr, fport, laddr, lport, uid)
struct sockaddr_in *fin, *lin;
int mib[] = { CTL_NET, PF_INET, IPPROTO_TCP, TCPCTL_IDENT };
int error = 0;
- int i;
+ size_t i;
memset(&tir, 0, sizeof (tir));
tir.faddr.sa_len = sizeof (struct sockaddr);