diff options
author | imp <imp@FreeBSD.org> | 2002-02-02 06:48:10 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-02-02 06:48:10 +0000 |
commit | 50014e35418ca00d25ea852fc4f94acf80be4df3 (patch) | |
tree | f26db6e85c29b2244f601bdb366caa7f26a96c24 /bin/ls/util.c | |
parent | 3fc8df52e3856eeac730574d5ae122806dd1e1ef (diff) | |
download | FreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.zip FreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.tar.gz |
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
Diffstat (limited to 'bin/ls/util.c')
-rw-r--r-- | bin/ls/util.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c index 668d8e4..39ee382 100644 --- a/bin/ls/util.c +++ b/bin/ls/util.c @@ -57,8 +57,7 @@ static const char rcsid[] = #include "extern.h" int -prn_printable(s) - const char *s; +prn_printable(const char *s) { unsigned char c; int n; @@ -85,9 +84,7 @@ prn_printable(s) */ int -len_octal(s, len) - const char *s; - int len; +len_octal(const char *s, int len) { int r = 0; @@ -97,8 +94,7 @@ len_octal(s, len) } int -prn_octal(s) - const char *s; +prn_octal(const char *s) { unsigned char ch; int len = 0; @@ -158,7 +154,7 @@ prn_octal(s) } void -usage() +usage(void) { (void)fprintf(stderr, #ifdef COLORLS |