diff options
author | mike <mike@FreeBSD.org> | 2002-05-12 03:56:34 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-05-12 03:56:34 +0000 |
commit | 497f9fbf899448b2870ef4feb98022f028988947 (patch) | |
tree | f94edb569ded22e1b5462a72acee524bd7006191 /usr.bin/uuencode | |
parent | 20313e69cb7ddaba1960c799268e2a9edaeda4e1 (diff) | |
download | FreeBSD-src-497f9fbf899448b2870ef4feb98022f028988947.zip FreeBSD-src-497f9fbf899448b2870ef4feb98022f028988947.tar.gz |
Finish converting the rest of the function declaration and prototypes
to ANSI C. Use new source ID scheme.
Diffstat (limited to 'usr.bin/uuencode')
-rw-r--r-- | usr.bin/uuencode/uuencode.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c index 72c1c55..96c3370 100644 --- a/usr.bin/uuencode/uuencode.c +++ b/usr.bin/uuencode/uuencode.c @@ -37,13 +37,14 @@ static const char copyright[] = The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)uuencode.c 8.2 (Berkeley) 4/2/94"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); /* * uuencode [input] output @@ -139,7 +140,7 @@ main(int argc, char *argv[]) * Copy from in to out, encoding in base64 as you go along. */ void -base64_encode() +base64_encode(void) { #define GROUPS 8 /* Group output chunks */ unsigned char buf[6]; @@ -166,7 +167,7 @@ base64_encode() * Copy from in to out, encoding as you go along. */ void -encode() +encode(void) { register int ch, n; register char *p; @@ -210,7 +211,7 @@ encode() } static void -usage() +usage(void) { (void)fprintf(stderr,"usage: uuencode [-m] [-o outfile] [infile] remotefile\n"); exit(1); |