summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/pfe.c
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-08-08 08:51:22 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-08-08 08:51:22 +0000
commit924a7ff7faa7300916e6bb1bc330a2ab4abd69f4 (patch)
tree99ca82e953da7e4a0bedbb8f5ef70865eb6f428a /usr.sbin/relayd/pfe.c
parentbbc0041d77729a4313493f1f7efd97049630d0e0 (diff)
Check gettimeofday() against -1; Add a missing error check in one place.
OK reyk@
Diffstat (limited to 'usr.sbin/relayd/pfe.c')
-rw-r--r--usr.sbin/relayd/pfe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/pfe.c b/usr.sbin/relayd/pfe.c
index 9b07926d405..947de05f50b 100644
--- a/usr.sbin/relayd/pfe.c
+++ b/usr.sbin/relayd/pfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfe.c,v 1.50 2008/07/19 11:38:54 reyk Exp $ */
+/* $OpenBSD: pfe.c,v 1.51 2008/08/08 08:51:21 thib Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -946,7 +946,7 @@ pfe_statistics(int fd, short events, void *arg)
u_long cnt;
timerclear(&tv);
- if (gettimeofday(&tv_now, NULL))
+ if (gettimeofday(&tv_now, NULL) == -1)
fatal("pfe_statistics: gettimeofday");
TAILQ_FOREACH(rdr, env->sc_rdrs, entry) {