Changed to call exit(0) instead of falling out the bottom of main().
Changed to include <string.h> instead of defining own prototype for strerror().
This commit is contained in:
parent
597bdad3df
commit
afd5a260df
@ -41,7 +41,7 @@ char copyright[] =
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/*static char sccsid[] = "from: @(#)pom.c 5.3 (Berkeley) 2/28/91";*/
|
/*static char sccsid[] = "from: @(#)pom.c 5.3 (Berkeley) 2/28/91";*/
|
||||||
static char rcsid[] = "$Id: pom.c,v 1.2 1993/08/01 18:53:16 mycroft Exp $";
|
static char rcsid[] = "$Id: pom.c,v 1.3 1995/02/03 18:15:02 jtc Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -56,6 +56,7 @@ static char rcsid[] = "$Id: pom.c,v 1.2 1993/08/01 18:53:16 mycroft Exp $";
|
|||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <tzfile.h>
|
#include <tzfile.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
@ -78,7 +79,6 @@ main()
|
|||||||
struct tm *GMT, *gmtime();
|
struct tm *GMT, *gmtime();
|
||||||
double days, today, tomorrow;
|
double days, today, tomorrow;
|
||||||
int cnt;
|
int cnt;
|
||||||
char *strerror();
|
|
||||||
|
|
||||||
if (gettimeofday(&tp,&tzp)) {
|
if (gettimeofday(&tp,&tzp)) {
|
||||||
(void)fprintf(stderr, "pom: %s\n", strerror(errno));
|
(void)fprintf(stderr, "pom: %s\n", strerror(errno));
|
||||||
@ -111,6 +111,7 @@ main()
|
|||||||
today);
|
today);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user