Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sdpd use appropriate types for uid/gid



details:   https://anonhg.NetBSD.org/src/rev/ce79c10be391
branches:  trunk
changeset: 766523:ce79c10be391
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sat Jun 25 09:28:45 2011 +0000

description:
use appropriate types for uid/gid

diffstat:

 usr.sbin/sdpd/main.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r e5236b3f0c66 -r ce79c10be391 usr.sbin/sdpd/main.c
--- a/usr.sbin/sdpd/main.c      Sat Jun 25 09:16:52 2011 +0000
+++ b/usr.sbin/sdpd/main.c      Sat Jun 25 09:28:45 2011 +0000
@@ -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 m_evmenkin%yahoo.com@localhost.\
   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) {



Home | Main Index | Thread Index | Old Index