summaryrefslogtreecommitdiffstats
path: root/pom
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-12 01:00:27 +0000
committerlukem <lukem@NetBSD.org>1997-10-12 01:00:27 +0000
commit9d96f89bba59d8190721c35fe575b172409c8b37 (patch)
treeadf4ef9c2c59ccc5a9a5b3483f48f28599ffed65 /pom
parent718b40e43f2fbb804acc0266499926f8e51f83ef (diff)
downloadbsdgames-darwin-9d96f89bba59d8190721c35fe575b172409c8b37.tar.gz
bsdgames-darwin-9d96f89bba59d8190721c35fe575b172409c8b37.tar.zst
bsdgames-darwin-9d96f89bba59d8190721c35fe575b172409c8b37.zip
use err/warn instead of perror
Diffstat (limited to 'pom')
-rw-r--r--pom/pom.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/pom/pom.c b/pom/pom.c
index 7102f9ba..510750c7 100644
--- a/pom/pom.c
+++ b/pom/pom.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pom.c,v 1.7 1997/10/10 16:47:05 lukem Exp $ */
+/* $NetBSD: pom.c,v 1.8 1997/10/12 01:01:39 lukem Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -45,7 +45,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pom.c,v 1.7 1997/10/10 16:47:05 lukem Exp $");
+__RCSID("$NetBSD: pom.c,v 1.8 1997/10/12 01:01:39 lukem Exp $");
#endif
#endif /* not lint */
@@ -60,6 +60,7 @@ __RCSID("$NetBSD: pom.c,v 1.7 1997/10/10 16:47:05 lukem Exp $");
*/
#include <sys/time.h>
+#include <err.h>
#include <errno.h>
#include <math.h>
#include <stdio.h>
@@ -92,10 +93,8 @@ main(argc, argv)
double days, today, tomorrow;
int cnt;
- if (gettimeofday(&tp,&tzp)) {
- (void)fprintf(stderr, "pom: %s\n", strerror(errno));
- exit(1);
- }
+ if (gettimeofday(&tp,&tzp))
+ err(1, "gettimeofday");
tmpt = tp.tv_sec;
GMT = gmtime(&tmpt);
days = (GMT->tm_yday + 1) + ((GMT->tm_hour +