diff options
author | ed <ed@FreeBSD.org> | 2009-12-29 22:53:27 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-12-29 22:53:27 +0000 |
commit | b9ca89bfc495774b5fe49e23a272c721c840f68b (patch) | |
tree | 2e35e76a520e919173f604f9ba0f30358443ed4a /usr.sbin/sa | |
parent | 86ca9a5a9bdaa4a662de58157f311ce58029b75a (diff) | |
download | FreeBSD-src-b9ca89bfc495774b5fe49e23a272c721c840f68b.zip FreeBSD-src-b9ca89bfc495774b5fe49e23a272c721c840f68b.tar.gz |
ANSIfy almost all applications that use WARNS=6.
I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.
Diffstat (limited to 'usr.sbin/sa')
-rw-r--r-- | usr.sbin/sa/main.c | 2 | ||||
-rw-r--r-- | usr.sbin/sa/pdb.c | 8 | ||||
-rw-r--r-- | usr.sbin/sa/usrdb.c | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c index 7be13e5..64736ac 100644 --- a/usr.sbin/sa/main.c +++ b/usr.sbin/sa/main.c @@ -300,7 +300,7 @@ main(int argc, char **argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: sa [-abcdDfijkKlmnqrstu] [-P file] [-U file] [-v cutoff] [file ...]\n"); diff --git a/usr.sbin/sa/pdb.c b/usr.sbin/sa/pdb.c index 38beb55..e5e35f5 100644 --- a/usr.sbin/sa/pdb.c +++ b/usr.sbin/sa/pdb.c @@ -94,14 +94,14 @@ v1_to_v2(DBT *key __unused, DBT *data) /* Copy pdb_file to in-memory pacct_db. */ int -pacct_init() +pacct_init(void) { return (db_copy_in(&pacct_db, pdb_file, "process accounting", NULL, v1_to_v2)); } void -pacct_destroy() +pacct_destroy(void) { db_destroy(pacct_db, "process accounting"); } @@ -150,14 +150,14 @@ pacct_add(const struct cmdinfo *ci) /* Copy in-memory pacct_db to pdb_file. */ int -pacct_update() +pacct_update(void) { return (db_copy_out(pacct_db, pdb_file, "process accounting", NULL)); } void -pacct_print() +pacct_print(void) { BTREEINFO bti; DBT key, data, ndata; diff --git a/usr.sbin/sa/usrdb.c b/usr.sbin/sa/usrdb.c index 07a5033..50778ef 100644 --- a/usr.sbin/sa/usrdb.c +++ b/usr.sbin/sa/usrdb.c @@ -97,7 +97,7 @@ v1_to_v2(DBT *key, DBT *data) /* Copy usrdb_file to in-memory usracct_db. */ int -usracct_init() +usracct_init(void) { BTREEINFO bti; @@ -109,7 +109,7 @@ usracct_init() } void -usracct_destroy() +usracct_destroy(void) { db_destroy(usracct_db, "user accounting"); } @@ -166,7 +166,7 @@ usracct_add(const struct cmdinfo *ci) /* Copy in-memory usracct_db to usrdb_file. */ int -usracct_update() +usracct_update(void) { BTREEINFO bti; @@ -178,7 +178,7 @@ usracct_update() } void -usracct_print() +usracct_print(void) { DBT key, data; struct userinfo uistore, *ui = &uistore; |