Changeset 2814

Show
Ignore:
Timestamp:
10/04/07 12:49:00
Author:
pvanhoof
Message:

2007-10-04 Philip Van Hoof <pvanhoof@gnome.org>

- -Wall warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2813 r2814  
     12007-10-04  Philip Van Hoof  <pvanhoof@gnome.org> 
     2 
     3        - -Wall warnings 
     4 
    152007-10-03  Jose Dapena Paz  <jdapena@igalia.com> 
    26 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c

    r2774 r2814  
    20272027        const char *received; 
    20282028        guchar digest[16]; 
    2029         char *msgid, *r=NULL; 
     2029        char *msgid = NULL; 
    20302030        char *subject, *from, *to, *cc; 
    20312031        CamelContentType *ct = NULL; 
     
    20332033        const char *prio = NULL; 
    20342034        const char *attach = NULL; 
    2035         int tzone = 0; 
    20362035 
    20372036        mi = (CamelMessageInfoBase *)camel_message_info_new(s); 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-parser.c

    r2519 r2814  
    15741574                h = s->parts; 
    15751575                do { 
    1576                         hb = folder_scan_content(s, &state, databuffer, datalength); 
     1576                        hb = (struct _header_scan_stack **)folder_scan_content(s, &state, databuffer, datalength); 
    15771577                        if (s->scan_pre_from && *datalength > 0) { 
    15781578                                d(printf("got pre-from content %d bytes\n", *datalength)); 
    15791579                                return; 
    15801580                        } 
    1581                 } while (hb==h && *datalength>0); 
    1582  
    1583                 if (*datalength==0 && hb==h) { 
     1581                } while (hb == ((struct _header_scan_stack **)h) && *datalength>0); 
     1582 
     1583                if (*datalength==0 && hb== ((struct _header_scan_stack **)h)) { 
    15841584                        d(printf("found 'From '\n")); 
    15851585                        s->start_of_from = folder_tell(s); 
     
    16641664                 
    16651665                do { 
    1666                         hb = folder_scan_content (s, &state, databuffer, datalength); 
     1666                        hb = (struct _header_scan_stack **) folder_scan_content (s, &state, databuffer, datalength); 
    16671667 
    16681668                        d(printf ("\n\nOriginal content: '")); 
     
    16811681                                return; 
    16821682                        } 
    1683                 } while (hb == h && *datalength > 0); 
     1683                } while (hb == ((struct _header_scan_stack **)h) && *datalength > 0); 
    16841684                 
    16851685                /* check for any filter completion data */ 
     
    17081708                do { 
    17091709                        do { 
    1710                                 hb = folder_scan_content(s, &state, databuffer, datalength); 
     1710                                hb = (struct _header_scan_stack **) folder_scan_content(s, &state, databuffer, datalength); 
    17111711                                if (*datalength>0) { 
    17121712                                        /* instead of a new state, we'll just store it locally and provide 
     
    17241724                                        } 
    17251725                                } 
    1726                         } while (hb==h && *datalength>0); 
     1726                        } while (hb== ((struct _header_scan_stack **)h) && *datalength>0); 
    17271727                        h->prestage++; 
    1728                         if (*datalength==0 && hb==h && !seenlast) { 
     1728                        if (*datalength==0 && hb== ((struct _header_scan_stack **)h) && !seenlast) { 
    17291729                                d(printf("got boundary: %s last=%d\n", hb->boundary, state)); 
    17301730                                s->start_of_boundary = folder_tell(s); 
  • trunk/libtinymail-camel/camel-lite/camel/camel-search-private.c

    r1943 r2814  
    9595int 
    9696camel_search_build_match_regex (regex_t *pattern, camel_search_flags_t type, int argc, 
    97                                 struct _ESExpResult **argv, CamelException *ex) 
    98 
     97                                void *argv_in, CamelException *ex) 
     98
     99        struct _ESExpResult **argv = argv_in; 
    99100        GString *match = g_string_new(""); 
    100101        int c, i, count=0, err; 
  • trunk/libtinymail-camel/camel-lite/camel/camel-search-private.h

    r1943 r2814  
    5656 
    5757/* builds a regex that represents a string search */ 
    58 int camel_search_build_match_regex(regex_t *pattern, camel_search_flags_t type, int argc, struct _ESExpResult **argv, CamelException *ex); 
     58int camel_search_build_match_regex(regex_t *pattern, camel_search_flags_t type, int argc, void *argv, CamelException *ex); 
    5959gboolean camel_search_message_body_contains(CamelDataWrapper *object, regex_t *pattern); 
    6060 
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-message-cache.c

    r2367 r2814  
    551551} 
    552552 
     553char *strcasestr(const char *haystack, const char *needle); 
    553554 
    554555static int  
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c

    r2807 r2814  
    12241224{ 
    12251225        const char *ssl_mode, *idle_sleep, *getsrv_sleep; 
    1226         struct addrinfo hints, *ai
     1226        struct addrinfo hints
    12271227        int mode = -1, ret, i, must_tls = 0; 
    12281228        char *serv; 
  • trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-local-store.c

    r2804 r2814  
    394394{ 
    395395        char *path = CAMEL_LOCAL_STORE (store)->toplevel_dir; 
    396         CamelLocalFolder *folder = NULL; 
    397         char *newibex = g_strdup_printf("%s%s.ibex", path, new); 
    398         char *oldibex = g_strdup_printf("%s%s.ibex", path, old); 
    399396        CamelException nex = CAMEL_EXCEPTION_INITIALISER; 
    400397 
     
    433430        /* The (f)utility of this recovery effort is quesitonable */ 
    434431 
    435 base_failed: 
    436432        xrename(new, old, path, ".cmeta", TRUE, ex); 
    437  
    438 cmeta_failed: 
    439433        xrename(new, old, path, ".ev-summary.mmap", TRUE, ex); 
    440434 
    441 summary_failed: 
    442435 
    443436#if 0 
  • trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-local-summary.c

    r2720 r2814  
    156156camel_local_summary_load(CamelLocalSummary *cls, int forceindex, CamelException *ex) 
    157157{ 
    158         struct stat st; 
    159         CamelFolderSummary *s = (CamelFolderSummary *)cls; 
    160  
    161158        d(printf("Loading summary ...\n")); 
    162159 
  • trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-maildir-folder.c

    r2777 r2814  
    292292        char *name = NULL; 
    293293        CamelStream *output_stream = NULL; 
    294  
    295         CamelMessageInfo *mi; 
    296         CamelMaildirMessageInfo *mdi; 
    297294        char *dest = NULL; 
    298295 
  • trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-maildir-summary.c

    r2810 r2814  
    536536} 
    537537 
    538 static int 
    539 sort_receive_cmp(const void *ap, const void *bp) 
    540 { 
    541         const CamelMaildirMessageInfo 
    542                 *a = *((CamelMaildirMessageInfo **)ap), 
    543                 *b = *((CamelMaildirMessageInfo **)bp); 
    544  
    545         if (a->info.info.date_received < b->info.info.date_received) 
    546                 return -1; 
    547         else if (a->info.info.date_received > b->info.info.date_received) 
    548                 return 1; 
    549  
    550         return 0; 
    551 } 
    552538 
    553539static int 
  • trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c

    r2754 r2814  
    675675 
    676676        if (camel_disco_store_status (CAMEL_DISCO_STORE (pop3_store)) == CAMEL_DISCO_STORE_OFFLINE) 
    677                 return
     677                return -1
    678678 
    679679        g_static_rec_mutex_lock (pop3_store->eng_lock); 
     
    683683                if (camel_exception_is_set (ex)) { 
    684684                        g_static_rec_mutex_unlock (pop3_store->eng_lock); 
    685                         return
     685                        return -1
    686686                } 
    687687        } 
  • trunk/libtinymail-camel/camel-lite/iconv-detect.c

    r1018 r2814  
    2323#include <stdio.h> 
    2424#include <iconv.h> 
     25#include <unistd.h> 
    2526 
    2627enum { 
     
    9293int main (int argc, char **argv) 
    9394{ 
    94         unsigned int bits, iso8859, iso2022, iso10646; 
     95        unsigned int iso8859, iso2022, iso10646; 
    9596        CharInfo *info; 
    9697        iconv_t cd; 
     
    100101        fp = fopen ("iconv-detect.h", "w"); 
    101102        if (fp == NULL) 
    102                 exit (255); 
     103                return (255); 
    103104         
    104105        fprintf (fp, "/* This is an auto-generated header, DO NOT EDIT! */\n\n"); 
     
    182183        fclose (fp); 
    183184         
    184         exit (0); 
     185        return (0); 
    185186} 
  • trunk/libtinymail-gnome-desktop/tny-gnome-account-store.c

    r2536 r2814  
    448448 
    449449*/ 
    450  
     450#if 0 
    451451static void 
    452452tny_gnome_account_store_add_account (TnyAccountStore *self, TnyAccount *account, const gchar *type) 
     
    484484        return; 
    485485} 
     486#endif 
    486487 
    487488 
  • trunk/libtinymail-gnome-desktop/tny-gnome-device.c

    r2553 r2814  
    2121 
    2222#include <glib/gi18n-lib.h> 
     23#include <gtk/gtk.h> 
    2324 
    2425#include <tny-gnome-device.h> 
  • trunk/m4/ticonv.m4

    r1147 r2814  
    4646        const char *from = "Some Text \xA4"; 
    4747        const char *utf8 = "Some Text \xC2\xA4"; 
    48         char *transbuf = malloc (20), *trans = transbuf; 
     48        char *transbuf = (char *) malloc (20), *trans = transbuf; 
    4949        iconv_t cd; 
    5050        size_t from_len = strlen (from), utf8_len = 20; 
     
    5454        /* glibc 2.1.2's iconv is broken in hard to test ways. */ 
    5555        if (!strcmp (gnu_get_libc_version (), "2.1.2")) 
    56                 exit (1); 
     56                return (1); 
    5757#endif 
    5858 
    5959        cd = iconv_open ("UTF-8", "ISO-8859-1"); 
    6060        if (cd == (iconv_t) -1) 
    61                 exit (1); 
     61                return (1); 
    6262        if (iconv (cd, &from, &from_len, &trans, &utf8_len) == -1 || from_len != 0) 
    63                 exit (1); 
     63                return (1); 
    6464        if (memcmp (utf8, transbuf, utf8_real_len) != 0) 
    65                 exit (1); 
     65                return (1); 
    6666 
    67         exit (0); 
     67        return (0); 
    6868}]])],[ac_cv_libiconv_utf8=yes],[ac_cv_libiconv_utf8=no; have_iconv=no],[ac_cv_libiconv_utf8=no; have_iconv=no])) 
    6969fi