Browse code

- warning fixed (appeared only on gcc < 3.0)

Andrei Pelinescu-Onciul authored on 27/05/2002 23:52:12
Showing 1 changed files
... ...
@@ -74,11 +74,11 @@ static inline unsigned short str2s(unsigned char* str, unsigned int len,
74 74
 	return ret;
75 75
 
76 76
 error_digits:
77
-	DBG("str2s: ERROR: too many letters in [%.*s]\n", len, init);
77
+	DBG("str2s: ERROR: too many letters in [%.*s]\n", (int)len, init);
78 78
 	if (err) *err=1;
79 79
 	return 0;
80 80
 error_char:
81
-	DBG("str2s: ERROR: unexpected char %c in %.*s\n", *str, len, init);
81
+	DBG("str2s: ERROR: unexpected char %c in %.*s\n", *str, (int)len, init);
82 82
 	if (err) *err=1;
83 83
 	return 0;
84 84
 }
... ...
@@ -117,11 +117,11 @@ static inline unsigned int str2ip(unsigned char* str, unsigned int len,
117 117
 	return ret;
118 118
 
119 119
 error_dots:
120
-	DBG("str2ip: ERROR: too many dots in [%.*s]\n", len, init);
120
+	DBG("str2ip: ERROR: too many dots in [%.*s]\n", (int)len, init);
121 121
 	if (err) *err=1;
122 122
 	return 0;
123 123
 error_char:
124
-	DBG("str2ip: WARNING: unexpected char %c in %.*s\n", *str, len, init);
124
+	DBG("str2ip: WARNING: unexpected char %c in %.*s\n", *str,(int)len, init);
125 125
 	if (err) *err=1;
126 126
 	return 0;
127 127
 }