<<< Date Index >>>     <<< Thread Index >>>

Patch to reduce warnings



Moin,

I've attached some diffs that remove warnings for compiling on
solaris8, please check for sanity.

In several files "OFF_T_FMT" is used, which is defined in config.h
as %lld, while gcc 2.95.2 complains that %lld is not ANSI C.
I have too little clue what the right "fix" is to drop the warning.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL of it: you get what you give.
diff -ru org/pgp.c cvs-2/pgp.c
--- org/pgp.c   Tue Nov 22 13:31:58 2005
+++ cvs-2/pgp.c Wed Feb 21 15:34:48 2007
@@ -36,6 +36,8 @@
 #include "mime.h"
 #include "copy.h"
 
+extern int setenv(const char *name, const char *value, int overwrite);
+
 #include <sys/wait.h>
 #include <string.h>
 #include <stdlib.h>
diff -ru org/crypt.c cvs-2/crypt.c
--- org/crypt.c Fri Jun  9 11:00:02 2006
+++ cvs-2/crypt.c       Wed Feb 21 15:15:38 2007
@@ -66,7 +66,7 @@
   {
     t = time(NULL);
     setlocale (LC_TIME, "");
-    strftime (p, sizeof (p), _(" (current time: %c)"), localtime (&t));
+    strftime (p, sizeof (p), _(" (current time: %C)"), localtime (&t));
     setlocale (LC_TIME, "C");
   }
   else
diff -ru org/imap/message.c cvs-2/imap/message.c
--- org/imap/message.c  Wed Nov 29 11:00:01 2006
+++ cvs-2/imap/message.c        Wed Feb 21 15:10:08 2007
@@ -870,8 +870,8 @@
     }
     else
       *s = *p;
-    *p++;
-    *s++;
+    p++;
+    s++;
   }
   *s = '\0';
 
diff -ru org/mbyte.c cvs-2/mbyte.c
--- org/mbyte.c Wed Jul 12 11:00:01 2006
+++ cvs-2/mbyte.c       Wed Feb 21 15:30:26 2007
@@ -32,6 +32,8 @@
 
 #include <ctype.h>
 
+#include <libintl.h>
+
 #ifndef EILSEQ
 #define EILSEQ EINVAL
 #endif