summaryrefslogtreecommitdiff
path: root/graphics/xplot/patches/patch-ad
blob: 28fc4cb133ddc060b2917bfbf66d7416dfd48bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$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);