blob: 9b116936c324c6936c07ad3bd598813b41ad93d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ad,v 1.2 1998/08/07 11:18:28 agc 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);
|