diff options
author | delphij <delphij@FreeBSD.org> | 2008-08-04 00:43:49 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-08-04 00:43:49 +0000 |
commit | a5c1d60642f3e26278563bd545199cd3f6d6e962 (patch) | |
tree | 02a7898f98544080fde74fe51788bf66d589cdac /usr.bin/quota | |
parent | d2bab1788df2f6bf184574f94195d23111ed9d6b (diff) | |
download | FreeBSD-src-a5c1d60642f3e26278563bd545199cd3f6d6e962.zip FreeBSD-src-a5c1d60642f3e26278563bd545199cd3f6d6e962.tar.gz |
Make quota(1) to compile with WARNS=6:
- ANSI'fy showrawquotas().
- Shut up GCC by initializing bgrace and igrace. The situation
that caused the GCC warning can never happen though.
Diffstat (limited to 'usr.bin/quota')
-rw-r--r-- | usr.bin/quota/quota.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 7b0763d..503b43d 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -282,7 +282,7 @@ showquotas(int type, u_long id, const char *name) struct quotause *quplist; const char *msgi, *msgb; const char *nam; - char *bgrace, *igrace; + char *bgrace = NULL, *igrace = NULL; int lines = 0, overquota = 0; static time_t now; @@ -391,10 +391,7 @@ showquotas(int type, u_long id, const char *name) } static void -showrawquotas(type, id, qup) - int type; - u_long id; - struct quotause *qup; +showrawquotas(int type, u_long id, struct quotause *qup) { time_t tt; printf("Raw %s quota information for id %lu on %s\n", |