From 9cc868afa34a0c4d9c518caf6bbddd6d5e564b5a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 23 Jun 1998 11:38:42 +0000 Subject: tsk tsk bob did not test his code on the alpha --- libexec/identd/openbsd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec') 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 * - * $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 */ @@ -15,6 +15,7 @@ #include #include +#include #include #include @@ -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); -- cgit v1.2.3