]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Fix build with modern compilers
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 20 Oct 2022 10:53:45 +0000 (12:53 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 20 Oct 2022 10:53:45 +0000 (12:53 +0200)
include/mlmmj.h

index 4db3339fdfb306580cad61605259752e395b4f4e..bf44064746a2433b8353f6d105a9c6b02aee32d0 100644 (file)
@@ -81,7 +81,7 @@ enum subtype {
        SUB_NONE /* For when an address is not subscribed at all */
 };
 
-char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
+extern char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
 
 enum subreason {
        SUB_REQUEST,
@@ -92,7 +92,7 @@ enum subreason {
        SUB_SWITCH
 };
 
-char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
+extern char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
 
 void print_version(const char *prg);