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.
This commit is contained in:
delphij 2008-08-04 00:43:49 +00:00
parent d2bab1788d
commit a5c1d60642

View File

@ -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",