diff options
author | David Malone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
commit | f4ac32def255b5968bdd8150057b9c0d14595689 (patch) | |
tree | fb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/users | |
parent | d946bf789255a84ecbbbdfd07bffb48da063204f (diff) | |
download | src-test2-f4ac32def255b5968bdd8150057b9c0d14595689.tar.gz src-test2-f4ac32def255b5968bdd8150057b9c0d14595689.zip |
ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
Notes
Notes:
svn path=/head/; revision=102944
Diffstat (limited to 'usr.bin/users')
-rw-r--r-- | usr.bin/users/users.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c index 597d0b200b8c..c90bfbdc149d 100644 --- a/usr.bin/users/users.c +++ b/usr.bin/users/users.c @@ -59,9 +59,7 @@ int scmp(const void *, const void *); static void usage(void); int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { namebuf *names = NULL; int ncnt = 0; @@ -107,15 +105,14 @@ main(argc, argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: users\n"); exit(1); } int -scmp(p, q) - const void *p, *q; +scmp(const void *p, const void *q) { return(strncmp(p, q, UT_NAMESIZE)); } |