Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/newgrp fix type or rval.



details:   https://anonhg.NetBSD.org/src/rev/9f6aa1292518
branches:  trunk
changeset: 784308:9f6aa1292518
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 24 17:46:30 2013 +0000

description:
fix type or rval.

diffstat:

 usr.bin/newgrp/grutil.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d7c7bf601cd8 -r 9f6aa1292518 usr.bin/newgrp/grutil.c
--- a/usr.bin/newgrp/grutil.c   Thu Jan 24 17:46:00 2013 +0000
+++ b/usr.bin/newgrp/grutil.c   Thu Jan 24 17:46:30 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grutil.c,v 1.2 2008/04/28 20:24:14 martin Exp $        */
+/*     $NetBSD: grutil.c,v 1.3 2013/01/24 17:46:30 christos Exp $      */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: grutil.c,v 1.2 2008/04/28 20:24:14 martin Exp $");
+__RCSID("$NetBSD: grutil.c,v 1.3 2013/01/24 17:46:30 christos Exp $");
 
 #include <sys/param.h>
 #include <err.h>
@@ -137,7 +137,8 @@
 static addgrp_ret_t
 addgrp(gid_t newgid, int makespace)
 {
-       int ngroups, ngroupsmax, rval;
+       int ngroups, ngroupsmax;
+       addgrp_ret_t rval;
        gid_t *groups;
        gid_t oldgid;
 



Home | Main Index | Thread Index | Old Index