summaryrefslogtreecommitdiff
path: root/libexec/identd/openbsd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-23 11:38:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-23 11:38:42 +0000
commit9cc868afa34a0c4d9c518caf6bbddd6d5e564b5a (patch)
tree6b9954672758c2defb83e3c3fb455ab972e84a68 /libexec/identd/openbsd.c
parente2b0c299949c940c50ab5c3190bf5d30008c0c20 (diff)
tsk tsk bob did not test his code on the alpha
Diffstat (limited to 'libexec/identd/openbsd.c')
-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);