diff options
author | erdgeist <> | 2003-02-12 17:55:55 +0000 |
---|---|---|
committer | erdgeist <> | 2003-02-12 17:55:55 +0000 |
commit | 63ec94ecd04985d90d5c86659e0decbeefd389f2 (patch) | |
tree | 1fd772d36fbeba9ddccb545e722159dfeb500ec5 | |
parent | dea6bf757aa9a875eab35b2b650412e7605f1308 (diff) |
Warnings
-rwxr-xr-x | vchat-ui.c | 7 | ||||
-rwxr-xr-x | vchat-user.c | 6 |
2 files changed, 7 insertions, 6 deletions
@@ -225,12 +225,12 @@ sb_flush ( struct sb_data *sb ) { | |||
225 | sb->entries = NULL; | 225 | sb->entries = NULL; |
226 | } | 226 | } |
227 | 227 | ||
228 | static void | 228 | /*static void |
229 | sb_clear ( struct sb_data **sb ) { | 229 | sb_clear ( struct sb_data **sb ) { |
230 | sb_flush(*sb); | 230 | sb_flush(*sb); |
231 | free( *sb ); | 231 | free( *sb ); |
232 | *sb = NULL; | 232 | *sb = NULL; |
233 | } | 233 | }*/ |
234 | 234 | ||
235 | static struct sb_entry* | 235 | static struct sb_entry* |
236 | sb_add (struct sb_data *sb, unsigned char *line, time_t when) { | 236 | sb_add (struct sb_data *sb, unsigned char *line, time_t when) { |
@@ -272,8 +272,9 @@ void showout (void) | |||
272 | 272 | ||
273 | void writeout (unsigned char *str) | 273 | void writeout (unsigned char *str) |
274 | { | 274 | { |
275 | int i; | ||
275 | sb_add(sb_out,str,time(NULL)); | 276 | sb_add(sb_out,str,time(NULL)); |
276 | int i = 1 + gettextwidth( str ); | 277 | i = 1 + gettextwidth( str ); |
277 | if( i > outputwidth_desired ) outputwidth_desired = i; | 278 | if( i > outputwidth_desired ) outputwidth_desired = i; |
278 | } | 279 | } |
279 | 280 | ||
diff --git a/vchat-user.c b/vchat-user.c index 4f4990c..868fcc5 100755 --- a/vchat-user.c +++ b/vchat-user.c | |||
@@ -300,7 +300,7 @@ ulnc_complete (const unsigned char *text, int state, int value, int (*checkfn)(u | |||
300 | unsigned char * | 300 | unsigned char * |
301 | ul_nickcomp (const unsigned char *text, int state) | 301 | ul_nickcomp (const unsigned char *text, int state) |
302 | { | 302 | { |
303 | int ncasemode; | 303 | int ncasemode = 1; |
304 | unsigned char *name = NULL; | 304 | unsigned char *name = NULL; |
305 | if (!state) ncasemode = 0; | 305 | if (!state) ncasemode = 0; |
306 | if (!ncasemode) { | 306 | if (!ncasemode) { |
@@ -327,7 +327,7 @@ int ulnc_ncasenickc(user *tmp, const unsigned char *text, int len, int value) { | |||
327 | unsigned char * | 327 | unsigned char * |
328 | ul_cnickcomp (const unsigned char *text, int state) | 328 | ul_cnickcomp (const unsigned char *text, int state) |
329 | { | 329 | { |
330 | int ncasemode; | 330 | int ncasemode = 1; |
331 | static unsigned char *name = NULL; | 331 | static unsigned char *name = NULL; |
332 | 332 | ||
333 | if (!state) ncasemode = 0; | 333 | if (!state) ncasemode = 0; |
@@ -356,7 +356,7 @@ int ulnc_ncasenickm(user *tmp, const unsigned char *text, int len, int value) { | |||
356 | unsigned char * | 356 | unsigned char * |
357 | ul_mnickcomp (const unsigned char *text, int state) | 357 | ul_mnickcomp (const unsigned char *text, int state) |
358 | { | 358 | { |
359 | int ncasemode; | 359 | int ncasemode = 1; |
360 | static unsigned char *name = NULL; | 360 | static unsigned char *name = NULL; |
361 | 361 | ||
362 | if (!state) ncasemode = 0; | 362 | if (!state) ncasemode = 0; |