[Remind-Fans] remind BETA - macosX

David F. Skoll dfs at roaringpenguin.com
Thu Jul 12 08:12:18 EDT 2007


Erik Colson wrote:

> funcs.c: In function 'tz_set_tz':
> funcs.c:2339: error: void value not ignored as it ought to be
> make[1]: *** [funcs.o] Error 1
> make: *** [all] Error 2

Oops... this patch will fix it.

Regards,

David.


diff -u -r1.17 funcs.c
--- funcs.c     12 Jul 2007 03:29:14 -0000      1.17
+++ funcs.c     12 Jul 2007 12:11:18 -0000
@@ -2313,7 +2313,7 @@
 #ifndef HAVE_UNSETENV
 /* This is NOT a general-purpose replacement for unsetenv.  It's only
  * used for the timezone stuff! */
-static int unsetenv(char const *varname)
+static void unsetenv(char const *varname)
 {
     static char tzbuf[8];
     if (strcmp(varname, "TZ")) {
@@ -2321,7 +2321,7 @@
        abort();
     }
     sprintf(tzbuf, "%s", varname);
-    return(putenv(tzbuf));
+    putenv(tzbuf);
 }
 #endif
 
@@ -2336,7 +2336,8 @@
 {
     int r;
     if (tz == NULL) {
-        r = unsetenv("TZ");
+       unsetenv("TZ");
+       r = 0;
     } else {
         r = setenv("TZ", tz, 1);
     }



More information about the Remind-fans mailing list