Module Name: src
Committed By: plunky
Date: Sat Jun 25 09:28:45 UTC 2011
Modified Files:
src/usr.sbin/sdpd: main.c
Log Message:
use appropriate types for uid/gid
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/sdpd/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sdpd/main.c
diff -u src/usr.sbin/sdpd/main.c:1.7 src/usr.sbin/sdpd/main.c:1.8
--- src/usr.sbin/sdpd/main.c:1.7 Sun Aug 30 19:24:40 2009
+++ src/usr.sbin/sdpd/main.c Sat Jun 25 09:28:45 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.7 2009/08/30 19:24:40 plunky Exp $ */
+/* $NetBSD: main.c,v 1.8 2011/06/25 09:28:45 plunky Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
Copyright (c) 2006 Itronix, Inc.\
Copyright (c) 2004 Maksim Yevmenkin [email protected].\
All rights reserved.");
-__RCSID("$NetBSD: main.c,v 1.7 2009/08/30 19:24:40 plunky Exp $");
+__RCSID("$NetBSD: main.c,v 1.8 2011/06/25 09:28:45 plunky Exp $");
#include <errno.h>
#include <grp.h>
@@ -155,7 +155,8 @@
static bool
drop_root(char const *user, char const *group)
{
- int uid, gid;
+ gid_t gid;
+ uid_t uid;
char *ep;
if ((uid = getuid()) != 0) {