]> diplodocus.org Git - nmh/blobdiff - h/prototypes.h
Specify function parameters in prototypes, mainly void.
[nmh] / h / prototypes.h
index 9a181cc41a2d9c7b33d13fa01d1336e67def2e84..a89fe734f973dbd959a016fd2b7b50cdc4d13f9e 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * prototypes.h -- various prototypes
+/* prototypes.h -- various prototypes
  *
  * If you modify functions here, please document their current behavior
  * as much as practical.
@@ -204,7 +203,7 @@ char *get_term_stringcap(char *capability);
  * arg1..argN  - Arguments 1-N.
  *
  * Returns a tparm and tputs-processed string, or NULL if there was a problem
- * initializating the terminal or retrieving the capability.
+ * initialising the terminal or retrieving the capability.
  */
 char *get_term_stringparm(char *capability, long arg1, long arg2);
 
@@ -257,12 +256,11 @@ int m_gmprot (void);
 char *m_maildir (char *);
 char *m_mailpath (char *);
 char *m_name (int);
-int m_putenv (char *, char *);
 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.
@@ -342,8 +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_reset_m_getfld_state ();
+void scan_finished(void);
 int seq_addmsg (struct msgs *, char *, int, int, int);
 int seq_addsel (struct msgs *, char *, int, int);
 char *seq_bits (struct msgs *);
@@ -416,7 +413,6 @@ char *snprintb (char *buffer, size_t size, unsigned flags, char *bitfield);
 int ssequal (const char *, const char *);
 int stringdex (char *, char *);
 char *trimcpy (char *);
-int unputenv (char *);
 
 /*
  * Remove quotes and quoted-pair sequences from RFC-5322 atoms.
@@ -510,7 +506,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
@@ -535,7 +531,7 @@ nmh_creds_t nmh_get_credentials (const char *host, const char *user);
  *
  * creds       - Structure from previous nmh_get_credentials() call
  *
- * Returns NULL on error, otherwise a NUL-termined string containing
+ * Returns NULL on error, otherwise a NUL-terminated string containing
  * the username.  Points to allocated memory in the credentials structure
  * that is free()d by nmh_free_credentials().
  */