18 lines
395 B
Text
18 lines
395 B
Text
$NetBSD: patch-ad,v 1.3 1999/01/29 20:19:22 tron Exp $
|
|
|
|
--- timeval.c.DIST Fri Jun 28 12:41:21 1996
|
|
+++ timeval.c Mon Mar 30 19:58:50 1998
|
|
@@ -102,6 +102,13 @@
|
|
r.t.tv_sec = atoi(s);
|
|
while (isdigit(*s)) s++;
|
|
|
|
+ while (*s == ':') {
|
|
+ s++;
|
|
+ r.t.tv_sec *= 60;
|
|
+ r.t.tv_sec += atoi(s);
|
|
+ while (isdigit(*s)) s++;
|
|
+ }
|
|
+
|
|
if (*s == '.') {
|
|
s++;
|
|
r.t.tv_usec = atoi(s);
|