From b2c80b69ebb6d5061bc19f3f0592a55267e089ed Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Sun, 12 May 2002 03:56:34 +0000 Subject: Finish converting the rest of the function declaration and prototypes to ANSI C. Use new source ID scheme. --- usr.bin/uuencode/uuencode.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'usr.bin/uuencode') diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c index 72c1c55612b80..96c33705fae4e 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 +__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); -- cgit v1.3