]> diplodocus.org Git - nmh/commitdiff
Remove unneeded incomplete, member-less `struct tag;'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 23 Apr 2017 14:19:33 +0000 (15:19 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 23 Apr 2017 14:19:33 +0000 (15:19 +0100)
The forward declaration isn't needed to typedef based on the struct.

h/mh.h
h/netsec.h
sbr/m_getfld.c

diff --git a/h/mh.h b/h/mh.h
index 032471a..79a230b 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -368,7 +368,6 @@ struct msgs {
 #define BODY     3             /* Body  returned with more to come */
 #define FILEEOF  5             /* Reached end of input file        */
 
-struct m_getfld_state;
 typedef struct m_getfld_state *m_getfld_state_t;
 
 /*
@@ -393,7 +392,6 @@ typedef struct m_getfld_state *m_getfld_state_t;
 /*
  * credentials management
  */
-struct nmh_creds;
 typedef struct nmh_creds *nmh_creds_t;
 
 /*
index c072990..6d3e176 100644 (file)
@@ -4,7 +4,6 @@
  * things like SASL and OpenSSL.
  */
 
-struct _netsec_context;
 typedef struct _netsec_context netsec_context;
 
 /*
index 2b77e91..a7af3b1 100644 (file)
 /*
  * static prototypes
  */
-struct m_getfld_state;
 static int m_Eom (m_getfld_state_t);
 
 #define eom(c,s)       (s->msg_style != MS_DEFAULT && \