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/rcp/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/rcp/util.c')
-rw-r--r-- | bin/rcp/util.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/bin/rcp/util.c b/bin/rcp/util.c index 6e82007..4174589 100644 --- a/bin/rcp/util.c +++ b/bin/rcp/util.c @@ -56,8 +56,7 @@ static const char rcsid[] = #include "extern.h" char * -colon(cp) - char *cp; +colon(char *cp) { if (*cp == ':') /* Leading colon is part of file name. */ return (0); @@ -72,8 +71,7 @@ colon(cp) } void -verifydir(cp) - char *cp; +verifydir(char *cp) { struct stat stb; @@ -87,8 +85,7 @@ verifydir(cp) } int -okname(cp0) - char *cp0; +okname(char *cp0) { int c; char *cp; @@ -108,9 +105,7 @@ bad: warnx("%s: invalid user name", cp0); } int -susystem(s, userid) - int userid; - char *s; +susystem(char *s, int userid) { sig_t istat, qstat; int status; @@ -136,9 +131,7 @@ susystem(s, userid) } BUF * -allocbuf(bp, fd, blksize) - BUF *bp; - int fd, blksize; +allocbuf(BUF *bp, int fd, int blksize) { struct stat stb; size_t size; @@ -162,8 +155,7 @@ allocbuf(bp, fd, blksize) } void -lostconn(signo) - int signo; +lostconn(int signo) { if (!iamremote) warnx("lost connection"); |