From 50014e35418ca00d25ea852fc4f94acf80be4df3 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 2 Feb 2002 06:48:10 +0000 Subject: 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. --- bin/ls/util.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'bin/ls/util.c') 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 -- cgit v1.1