mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
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:
parent
ee2889cb98
commit
61328d7a97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181267
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user