Changeset 2318

Show
Ignore:
Timestamp:
06/29/07 15:26:30
Author:
pvanhoof
Message:

Fixing the strcasestr warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c

    r2214 r2318  
    19301930 
    19311931#ifndef _GNU_SOURCE 
    1932 static char *strcasestr(const char *haystack, const char *needle) 
     1932/* Non static so other users can link with it too */ 
     1933char *strcasestr(const char *haystack, const char *needle) 
    19331934{ 
    19341935      const gchar *p = haystack; 
     
    19641965char *strcasestr(const char *haystack, const char *needle); 
    19651966#endif 
     1967 
    19661968/** 
    19671969 *  
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c

    r2287 r2318  
    3939#include <config.h>  
    4040 
    41 #ifndef _GNU_SOURCE 
    42 #define _GNU_SOURCE 
    43 #endif 
    44  
    4541#include <ctype.h> 
    4642#include <errno.h> 
    4743#include <fcntl.h> 
    4844#include <stdlib.h> 
     45 
     46#ifndef _GNU_SOURCE 
     47#define _GNU_SOURCE 
     48#endif 
    4949#include <string.h> 
     50 
    5051#include <unistd.h> 
    5152#include <sys/stat.h> 
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-message-cache.c

    r2288 r2318  
    2323 */ 
    2424 
    25 /* Define this so that we have strcasestr(). */ 
     25 
     26#include <config.h> 
     27 
     28#include <ctype.h> 
     29#include <errno.h> 
     30 
    2631#ifndef _GNU_SOURCE 
    2732#define _GNU_SOURCE 
    2833#endif 
    29  
    30 #include <config.h> 
    31  
    32 #include <ctype.h> 
    33 #include <errno.h> 
    3434#include <string.h> 
     35 
    3536#include <sys/types.h> 
    3637 
  • trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c

    r2268 r2318  
    3434#endif 
    3535 
     36 
     37#include <glib/gstdio.h> 
     38 
     39#include <errno.h> 
     40#include <stdlib.h> 
     41 
    3642#ifndef _GNU_SOURCE 
    3743#define _GNU_SOURCE 
    3844#endif 
    39  
    40 #include <glib/gstdio.h> 
    41  
    42 #include <errno.h> 
    43 #include <stdlib.h> 
    4445#include <string.h> 
    4546 
  • trunk/libtinymail-camel/tny-camel-mime-part.c

    r2287 r2318  
    2222#include <glib/gi18n-lib.h> 
    2323 
    24 #include <string.h> 
    2524#ifndef _GNU_SOURCE 
    2625#define _GNU_SOURCE 
    27 #endif /* GNU_SOURCE*/ 
     26#endif 
     27 
    2828#include <string.h> 
    2929 
  • trunk/libtinymailui-mozembed/tny-moz-embed-stream.c

    r1192 r2318  
    2020#include <config.h> 
    2121#include <glib/gi18n-lib.h> 
     22 
     23#ifndef _GNU_SOURCE 
     24#define _GNU_SOURCE 
     25#endif 
     26 
    2227#include <string.h> 
    2328 
     
    105110        while (p) 
    106111        { 
    107                 p = (char*) strcasestr (p, (const char*) ttag); 
     112                p = strcasestr (p, (const char*) ttag); 
    108113                if (p) { occ++; p++; } 
    109114                        else break;