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 /vchat-ui.c | |
parent | dea6bf757aa9a875eab35b2b650412e7605f1308 (diff) |
Warnings
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-x | vchat-ui.c | 7 |
1 files changed, 4 insertions, 3 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 | ||