* NeedNewBuf() as CLANG indicates, this parameter should have a name
authorWilfried Göesgens <willi@citadel.org>
Sat, 22 May 2010 10:10:11 +0000 (10:10 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 22 May 2010 10:10:11 +0000 (10:10 +0000)
* several more corrections advised by CLANG

webcit/decode.c
webcit/messages.c
webcit/messages.h
webcit/subst.c

index 9ab67465e62ed05da099ae92a0644710c95e61e4..13659d88fca7d81f4d4a57756a55ed18b469de67 100644 (file)
@@ -27,7 +27,7 @@ iconv_t ctdl_iconv_open(const char *tocode, const char *fromcode)
 */
 
 
-inline char *FindNextEnd (char *bptr)
+static inline char *FindNextEnd (char *bptr)
 {
        char * end;
        /* Find the next ?Q? */
index 28c1431ef0a5feeeb970ae32bebc6aba1b0aa6c4..32df5afe50462dbefff93685c58a7bbdec28a9eb 100644 (file)
@@ -650,17 +650,6 @@ int load_msg_ptrs(const char *servcmd,
 }
 
 
-inline message_summary* GetMessagePtrAt(int n, HashList *Summ)
-{
-       const char *Key;
-       long HKLen;
-       void *vMsg;
-
-       if (Summ == NULL)
-               return NULL;
-       GetHashAt(Summ, n, &HKLen, &Key, &vMsg);
-       return (message_summary*) vMsg;
-}
 
 
 
index 387cbccff50bbac66b42389f5ca4f7472eaae463..eac391a2881a3587400705c4ee52121d1f510cfe 100644 (file)
@@ -60,7 +60,20 @@ typedef struct _message_summary {
        wc_mime_attachment *MsgBody;
 } message_summary;
 void DestroyMessageSummary(void *vMsg);
-inline message_summary* GetMessagePtrAt(int n, HashList *Summ);
+
+
+
+static inline message_summary* GetMessagePtrAt(int n, HashList *Summ)
+{
+       const char *Key;
+       long HKLen;
+       void *vMsg;
+
+       if (Summ == NULL)
+               return NULL;
+       GetHashAt(Summ, n, &HKLen, &Key, &vMsg);
+       return (message_summary*) vMsg;
+}
 
 typedef void (*ExamineMsgHeaderFunc)(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset);
 
index ccbbbdba2820e1571f451a70eca51f142ea085de..c12b6590832156be1ee31611d45b6dba4679cd10 100644 (file)
@@ -448,7 +448,7 @@ void clear_local_substs(void) {
        clear_substs (WC);
 }
 
-int NeedNewBuf(type)
+int NeedNewBuf(int type)
 {
        switch(type) {
        case WCS_STRING: