Finish converting the rest of the function declaration and prototypes
to ANSI C. Use new source ID scheme.
This commit is contained in:
parent
a8f9c5c794
commit
b2c80b69eb
@ -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[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* uudecode [file ...]
|
||||
@ -132,7 +133,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
int
|
||||
decode ()
|
||||
decode(void)
|
||||
{
|
||||
int flag;
|
||||
|
||||
@ -151,8 +152,7 @@ decode ()
|
||||
}
|
||||
|
||||
int
|
||||
decode2(flag)
|
||||
int flag;
|
||||
decode2(int flag)
|
||||
{
|
||||
struct passwd *pw;
|
||||
register int n;
|
||||
@ -334,8 +334,7 @@ if (!ignore) \
|
||||
}
|
||||
|
||||
void
|
||||
base64_decode(stream)
|
||||
const char *stream;
|
||||
base64_decode(const char *stream)
|
||||
{
|
||||
unsigned char out[MAXPATHLEN * 4];
|
||||
int rv;
|
||||
@ -351,7 +350,7 @@ base64_decode(stream)
|
||||
}
|
||||
|
||||
static void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: uudecode [-cips] [file ...]\n");
|
||||
(void)fprintf(stderr, "usage: uudecode [-i] -o output_file [file]\n");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user