]> granicus.if.org Git - neomutt/commitdiff
tidy: be specific about void functions
authorRichard Russon <rich@flatcap.org>
Wed, 15 Mar 2017 00:55:24 +0000 (00:55 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 22 Mar 2017 01:04:46 +0000 (01:04 +0000)
Some functions have been declared with "()" when they should be "(void)".

charset.c
hcache.c
mutt.h

index 6a4d2fe14ed4dd4e15bee87d2c475b1498a53a7a..2ba43817c882befdbfc1e37e68f309a2e9d0a847 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -311,7 +311,7 @@ int mutt_chscmp (const char *s, const char *chs)
                             a > b ? chs : buffer, MIN(a,b));
 }
 
-char *mutt_get_default_charset ()
+char *mutt_get_default_charset (void)
 {
   static char fcharset[SHORT_STRING];
   const char *c = AssumedCharset;
index c015d3f73f883ba8759d598f81f168b84979df74..de11fbb3c91e2ee428deb3fd8e110f0f6504f17d 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -912,7 +912,7 @@ mutt_hcache_delete(header_cache_t *h, const char *key, size_t keylen)
 }
 
 const char *
-mutt_hcache_backend_list()
+mutt_hcache_backend_list(void)
 {
   char tmp[STRING] = {0};
   const hcache_ops_t **ops = hcache_ops;
diff --git a/mutt.h b/mutt.h
index 3faf65b33c565ec468ba556d849a524b8a16a7c9..328a4f8a1e84c6d5fa0107daf3f7239b4fee0891 100644 (file)
--- a/mutt.h
+++ b/mutt.h
@@ -635,7 +635,7 @@ typedef struct replace_list_t
   struct replace_list_t *next;
 } REPLACE_LIST;
 
-static inline LIST *mutt_new_list()
+static inline LIST *mutt_new_list(void)
 {
   return safe_calloc (1, sizeof (LIST));
 }
@@ -717,7 +717,7 @@ typedef struct envelope
   unsigned int refs_changed : 1; /* References changed to break thread */
 } ENVELOPE;
 
-static inline ENVELOPE *mutt_new_envelope()
+static inline ENVELOPE *mutt_new_envelope(void)
 {
     return safe_calloc (1, sizeof (ENVELOPE));
 }
@@ -729,7 +729,7 @@ typedef struct parameter
   struct parameter *next;
 } PARAMETER;
 
-static inline PARAMETER *mutt_new_parameter()
+static inline PARAMETER *mutt_new_parameter(void)
 {
     return safe_calloc (1, sizeof (PARAMETER));
 }
@@ -913,7 +913,7 @@ typedef struct header
   char *maildir_flags;         /* unknown maildir flags */
 } HEADER;
 
-static inline HEADER *mutt_new_header()
+static inline HEADER *mutt_new_header(void)
 {
     return safe_calloc (1, sizeof (HEADER));
 }
@@ -1115,7 +1115,7 @@ typedef struct
   int   tabs;
 } ENTER_STATE;
 
-static inline ENTER_STATE *mutt_new_enter_state()
+static inline ENTER_STATE *mutt_new_enter_state(void)
 {
     return safe_calloc (1, sizeof (ENTER_STATE));
 }