summaryrefslogtreecommitdiffstats
path: root/usr.bin/calendar/ostern.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2007-05-07 11:18:30 +0000
committerdwmalone <dwmalone@FreeBSD.org>2007-05-07 11:18:30 +0000
commitdda0e5cbe44df7bcc04ee2a206e4a3095780e447 (patch)
tree1403ca4aa64143cc949c3e1b7a10cedbeff4f506 /usr.bin/calendar/ostern.c
parent1e0d0fa4b98797bd9bc398af86558c7983981adf (diff)
downloadFreeBSD-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/ostern.c')
-rw-r--r--usr.bin/calendar/ostern.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/calendar/ostern.c b/usr.bin/calendar/ostern.c
index f000f7d..833d623 100644
--- a/usr.bin/calendar/ostern.c
+++ b/usr.bin/calendar/ostern.c
@@ -43,8 +43,8 @@ __FBSDID("$FreeBSD$");
* Astronomical Almanac".
*/
-int easter (year)
- int year; /* 0 ... abcd, NOT since 1900 */
+int
+easter(int year) /* 0 ... abcd, NOT since 1900 */
{
int G, /* Golden number - 1 */
C, /* Century */
@@ -73,12 +73,9 @@ int easter (year)
*/
int
-geteaster(s, year)
- char *s;
- int year;
+geteaster(char *s, int year)
{
int offset = 0;
- extern struct fixs neaster;
#define EASTER "easter"
#define EASTERNAMELEN (sizeof(EASTER) - 1)
OpenPOWER on IntegriCloud