- Made 'linenum' unsigned
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 4 Jun 2015 11:07:23 +0000 (11:07 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 4 Jun 2015 11:07:23 +0000 (11:07 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6043 82007160-df01-0410-b94d-b575c5fd34c7

src/config-lexer.l
src/config.c
src/config.h

index 2dbb210171170440a091ed8c8ba1ddc6e5ae5522..01e09e712d438340a4b83e04934731a649f97293 100644 (file)
@@ -34,7 +34,7 @@
 
 void ccomment(void);
 
-int linenum = 1;
+unsigned int linenum = 1;
 char linebuf[512];
 
 %}
index 76d52c4ffc39ed7301f5bc48306f90b4485665b1..1998f0050e9416829652f2ebe917460d550aa677 100644 (file)
@@ -125,6 +125,6 @@ config_load(const char *filename)
 void
 yyerror(const char *str)
 {
-  log_printf("CONFIG -> %s: line %d", str, linenum);
+  log_printf("CONFIG -> %s: line %u", str, linenum);
   exit(EXIT_FAILURE);
 }
index e5ddca065d47c138bb58ca209b492df96d3569cd..153e76de4937ff07fa84b9e652a9a38bfffc6e03 100644 (file)
@@ -27,7 +27,7 @@
 #include "libopm/src/opm_types.h"
 
 extern char linebuf[512];
-extern int  linenum;
+extern unsigned int linenum;
 
 extern void yyerror(const char *);
 extern void config_load(const char *);