]> diplodocus.org Git - nmh/commitdiff
Use `void' in prototypes for functions with no parameters.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 12:39:08 +0000 (13:39 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 12:39:08 +0000 (13:39 +0100)
The old-style `int foo()' still lived on in a few places.

h/addrsbr.h
h/fmt_scan.h
h/prototypes.h
sbr/addrsbr.c
sbr/credentials.c
sbr/fmt_new.c
sbr/m_mktemp.c
uip/scansbr.c

index 3e6bffd..a9e9897 100644 (file)
@@ -42,7 +42,7 @@ int ismymbox(struct mailname *);
  * Enable Email Address Internationalization, which requires
  * support of 8-bit addresses.
  */
-void enable_eai();
+void enable_eai(void);
 
 /*
  * Parse an address header, and return a sequence of email addresses.
index faedecd..4f14b65 100644 (file)
@@ -116,7 +116,7 @@ char *new_fs (char *form, char *format, char *default_fs);
  * Free memory allocated by new_fs().  It allocates to a static so
  * no argument is necessary.
  */
-void free_fs ();
+void free_fs(void);
 
 /*
  * Compile a format string into a set of format instructions.  Arguments are:
index dfc3b5c..74bf725 100644 (file)
@@ -260,7 +260,7 @@ int m_rand (unsigned char *, size_t);
 char *m_mktemp(const char *, int *, FILE **);
 char *m_mktemp2(const char *, const char *, int *, FILE **);
 char *m_mktemps(const char *pfx, const char *suffix, int *, FILE **);
-char *get_temp_dir();
+char *get_temp_dir(void);
 
 /*
  * Create a subprocess and redirect our standard output to it.
@@ -340,7 +340,7 @@ void ruserpass (const char *host, char **aname, char **apass, int flags);
 
 int remdir (char *);
 void scan_detect_mbox_style (FILE *);
-void scan_finished ();
+void scan_finished(void);
 void scan_reset_m_getfld_state ();
 int seq_addmsg (struct msgs *, char *, int, int, int);
 int seq_addsel (struct msgs *, char *, int, int);
@@ -507,7 +507,7 @@ void hexify (const unsigned char *, size_t, char **);
 /*
  * credentials management
  */
-void init_credentials_file ();
+void init_credentials_file(void);
 
 /*
  * Allocate and return a credentials structure.  The credentials structure
index a9f16d8..6d883ea 100644 (file)
@@ -77,7 +77,7 @@ static char adr[BUFSIZ];
 static int eai = 0;
 
 void
-enable_eai() {
+enable_eai(void) {
     eai = 1;
 }
 
index b34b967..f6fd15d 100644 (file)
@@ -16,7 +16,7 @@ struct nmh_creds {
 };
 
 void
-init_credentials_file () {
+init_credentials_file(void) {
     if (credentials_file == NULL) {
         char *cred_style = context_find ("credentials");
 
index c832e7f..c699dbd 100644 (file)
@@ -56,7 +56,7 @@ new_fs (char *form, char *format, char *default_fs)
 
 
 void
-free_fs (){
+free_fs(void) {
     free (formats);
     formats = 0;
 }
index 2a10ed8..f4d5c3f 100644 (file)
@@ -228,7 +228,7 @@ m_mktemps(
 
 
 char *
-get_temp_dir()
+get_temp_dir(void)
 {
     /* Ignore envvars if we are setuid */
     if ((getuid()==geteuid()) && (getgid()==getegid())) {
index 7023502..7d81b51 100644 (file)
@@ -336,7 +336,7 @@ finished:
 
 /* The following two functions allow access to the global gstate above. */
 void
-scan_finished () {
+scan_finished(void) {
     m_getfld_state_destroy (&gstate);
 }