diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2007-05-07 11:18:30 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2007-05-07 11:18:30 +0000 |
commit | dda0e5cbe44df7bcc04ee2a206e4a3095780e447 (patch) | |
tree | 1403ca4aa64143cc949c3e1b7a10cedbeff4f506 /usr.bin/calendar/io.c | |
parent | 1e0d0fa4b98797bd9bc398af86558c7983981adf (diff) | |
download | FreeBSD-src-dda0e5cbe44df7bcc04ee2a206e4a3095780e447.zip FreeBSD-src-dda0e5cbe44df7bcc04ee2a206e4a3095780e447.tar.gz |
ANSIfy function definitions.
Move some extern declarations to a header file.
Remove an unneeded extern declaration for optarg.
Diffstat (limited to 'usr.bin/calendar/io.c')
-rw-r--r-- | usr.bin/calendar/io.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c index df19e8c..ee5b988 100644 --- a/usr.bin/calendar/io.c +++ b/usr.bin/calendar/io.c @@ -85,7 +85,7 @@ struct iovec header[] = { void -cal() +cal(void) { int printing; char *p; @@ -166,9 +166,7 @@ cal() } int -getfield(p, endp, flags) - char *p, **endp; - int *flags; +getfield(char *p, char **endp, int *flags) { int val, var; char *start, savech; @@ -233,7 +231,7 @@ getfield(p, endp, flags) char path[MAXPATHLEN]; FILE * -opencal() +opencal(void) { uid_t uid; size_t i; @@ -312,8 +310,7 @@ opencal() } void -closecal(fp) - FILE *fp; +closecal(FILE *fp) { uid_t uid; struct stat sbuf; |