summaryrefslogtreecommitdiff
path: root/sbin/ping
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-09-12 23:06:46 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-09-12 23:06:46 +0000
commit612dacf5d11254b5352f9d12ca08170449e45963 (patch)
treeb442f2186ee779ab564505df57d6298959648943 /sbin/ping
parenta6ca40e746648ea9bf6dbe4b21c4727b32d31abf (diff)
Misc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec.
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 2d36289e80f..13f5330524d 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.94 2013/04/16 22:10:34 deraadt Exp $ */
+/* $OpenBSD: ping.c,v 1.95 2013/09/12 23:06:44 krw Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -347,7 +347,7 @@ main(int argc, char *argv[])
memset(&interstr, 0, sizeof(interstr));
- interstr.it_value.tv_sec = (long) interval;
+ interstr.it_value.tv_sec = interval;
interstr.it_value.tv_usec =
(long) ((interval - interstr.it_value.tv_sec) * 1000000);