]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix redundant redeclaration of Conn_Count*() functions
authorAlexander Barton <alex@barton.de>
Fri, 25 Jun 2010 22:45:11 +0000 (00:45 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 25 Jun 2010 22:45:11 +0000 (00:45 +0200)
The wrongly placed #endif lead to the following compiler warnings:

conn.h:125: warning: redundant redeclaration of ‘Conn_Count’
conn.h:125: warning: previous declaration of ‘Conn_Count’ was here
conn.h:126: warning: redundant redeclaration of ‘Conn_CountMax’
conn.h:126: warning: previous declaration of ‘Conn_CountMax’ was here
conn.h:127: warning: redundant redeclaration of ‘Conn_CountAccepted’
conn.h:127: warning: previous declaration of ‘Conn_CountAccepted’ was here

src/ngircd/conn.h

index 1cfa466602379f7c8dc6f7b49e4a59d9ead2367e..96d1f33b144cc7151e7892ed12f13fefe33a82fc 100644 (file)
@@ -120,11 +120,12 @@ GLOBAL bool Conn_UsesSSL PARAMS((CONN_ID Idx));
 #else
 static inline bool Conn_UsesSSL(UNUSED CONN_ID Idx) { return false; }
 #endif
-#endif
 
 GLOBAL long Conn_Count PARAMS((void));
 GLOBAL long Conn_CountMax PARAMS((void));
 GLOBAL long Conn_CountAccepted PARAMS((void));
 
+#endif
+
 
 /* -eof- */