f1fd6443a6
Submitted by: bento
31 lines
831 B
Text
31 lines
831 B
Text
|
|
$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(_
|