From a5c1d60642f3e26278563bd545199cd3f6d6e962 Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 4 Aug 2008 00:43:49 +0000 Subject: 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. --- usr.bin/quota/quota.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'usr.bin/quota') 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", -- cgit v1.1