summaryrefslogtreecommitdiff
path: root/misc/misterproper/files/patch-aa
blob: 84e9850b1154d3e6ae6e12d0842a2db5caa75881 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$FreeBSD$

--- src/main.c.orig	Sat Mar  3 15:03:28 2001
+++ src/main.c	Fri Aug 31 15:28:37 2001
@@ -2,7 +2,6 @@
 # include <config.h>
 #endif
 
-#include <getopt.h>
 #include <gnome.h>
 
 #include "interface.h"
@@ -230,7 +229,7 @@
 					g_free(thing);
 					continue;
 				}
-				if ((thing->frequency = (time_t) strtoull(skunk, NULL, 10))
+				if ((thing->frequency = (time_t) strtoul(skunk, NULL, 10))
 					== (time_t) 0ULL) {
 					g_warning(_("Corrupted database : null frequency\n"));
 					g_free(thing);
@@ -247,7 +246,7 @@
 						(rand() % (thing->frequency * 4)) - 
 						(thing->frequency * 2) + thing->frequency / 2;
 				} else {
-					thing->last = (time_t) strtoull(skunk, NULL, 10);
+					thing->last = (time_t) strtoul(skunk, NULL, 10);
 				}
 				if ((skunk = strtok(NULL, DBSEP)) == NULL) {
 					g_warning(_