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/ps/fmt.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/ps/fmt.c')
-rw-r--r-- | bin/ps/fmt.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c index ff29af6..ef95810 100644 --- a/bin/ps/fmt.c +++ b/bin/ps/fmt.c @@ -50,16 +50,15 @@ static const char rcsid[] = #include <vis.h> #include "ps.h" -static char *cmdpart __P((char *)); -static char *shquote __P((char **)); +static char *cmdpart(char *); +static char *shquote(char **); /* * XXX * This is a stub until marc does the real one. */ static char * -shquote(argv) - char **argv; +shquote(char **argv) { static long arg_max = -1; long len; @@ -97,8 +96,7 @@ shquote(argv) } static char * -cmdpart(arg0) - char *arg0; +cmdpart(char *arg0) { char *cp; @@ -106,10 +104,7 @@ cmdpart(arg0) } char * -fmt_argv(argv, cmd, maxlen) - char **argv; - char *cmd; - int maxlen; +fmt_argv(char **argv, char *cmd, int maxlen) { int len; char *ap, *cp; |