Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/quota The proper type for a variable that can be eit...



details:   https://anonhg.NetBSD.org/src/rev/838e68f0f601
branches:  trunk
changeset: 771654:838e68f0f601
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Nov 27 13:23:50 2011 +0000

description:
The proper type for a variable that can be either a uid or gid is id_t,
not uint32_t.

diffstat:

 usr.bin/quota/quota.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (60 lines):

diff -r fa9b346f57af -r 838e68f0f601 usr.bin/quota/quota.c
--- a/usr.bin/quota/quota.c     Sun Nov 27 11:07:21 2011 +0000
+++ b/usr.bin/quota/quota.c     Sun Nov 27 13:23:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: quota.c,v 1.38 2011/11/25 16:55:05 dholland Exp $      */
+/*     $NetBSD: quota.c,v 1.39 2011/11/27 13:23:50 dholland Exp $      */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)quota.c    8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: quota.c,v 1.38 2011/11/25 16:55:05 dholland Exp $");
+__RCSID("$NetBSD: quota.c,v 1.39 2011/11/27 13:23:50 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -85,11 +85,11 @@
 #define        FOUND   0x01
 #define        QUOTA2  0x02
 
-static struct quotause *getprivs(uint32_t, int);
-static void    heading(int, uint32_t, const char *, const char *);
+static struct quotause *getprivs(id_t, int);
+static void    heading(int, id_t, const char *, const char *);
 static void    showgid(gid_t);
 static void    showgrpname(const char *);
-static void    showquotas(int, uint32_t, const char *);
+static void    showquotas(int, id_t, const char *);
 static void    showuid(uid_t);
 static void    showusrname(const char *);
 static void    usage(void) __attribute__((__noreturn__));
@@ -314,7 +314,7 @@
 }
 
 static void
-showquotas(int type, uint32_t id, const char *name)
+showquotas(int type, id_t id, const char *name)
 {
        struct quotause *qup;
        struct quotause *quplist;
@@ -435,7 +435,7 @@
 }
 
 static void
-heading(int type, uint32_t id, const char *name, const char *tag)
+heading(int type, id_t id, const char *name, const char *tag)
 {
        if (dflag)
                printf("Default %s disk quotas: %s\n",
@@ -464,7 +464,7 @@
  * Collect the requested quota information.
  */
 static struct quotause *
-getprivs(uint32_t id, int quotatype)
+getprivs(id_t id, int quotatype)
 {
        struct quotause *qup, *quptail;
        struct quotause *quphead;



Home | Main Index | Thread Index | Old Index