WINGs: Moved declaration of extern variable to the global header

Having local extern declaration is dangerous because the compiler
is not able to cross-check if the type of the variable was defined
consistently.
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2013-05-12 01:01:20 +01:00
1 parent 5c2a1ae1a1
commit 8a58c8b568
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -28,8 +28,8 @@
#include <unistd.h>
#include <WUtil.h>
#include <WINGsP.h>
extern char *_WINGS_progname;
void __wmessage(const char *func, const char *file, int line, int type, const char *msg, ...)
{