util: Variables should be declared extern in headers
authorMartin Schwenke <martin@meltin.net>
Thu, 4 Sep 2014 01:20:28 +0000 (11:20 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 27 Mar 2015 02:48:54 +0000 (13:48 +1100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 1d16555fa0ad562dcd8c4bbffaca454e68bcabbf)

lib/util/debug.h

index 27490a3dbf95cad51033f5a101993188850491fb..9b73b2640d435c5f70d280571257c040594d9117 100644 (file)
@@ -17,9 +17,9 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-void (*do_debug_v)(const char *, va_list ap);
-const char *debug_extra;
-void (*do_debug_add_v)(const char *, va_list ap);
+extern void (*do_debug_v)(const char *, va_list ap);
+extern const char *debug_extra;
+extern void (*do_debug_add_v)(const char *, va_list ap);
 void log_ringbuffer(const char *format, ...);
 void do_debug(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
 void do_debug_add(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);