summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2003-02-12 17:55:55 +0000
committererdgeist <>2003-02-12 17:55:55 +0000
commit63ec94ecd04985d90d5c86659e0decbeefd389f2 (patch)
tree1fd772d36fbeba9ddccb545e722159dfeb500ec5
parentdea6bf757aa9a875eab35b2b650412e7605f1308 (diff)
Warnings
-rwxr-xr-xvchat-ui.c7
-rwxr-xr-xvchat-user.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/vchat-ui.c b/vchat-ui.c
index e9368b4..526727f 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -225,12 +225,12 @@ sb_flush ( struct sb_data *sb ) {
225 sb->entries = NULL; 225 sb->entries = NULL;
226} 226}
227 227
228static void 228/*static void
229sb_clear ( struct sb_data **sb ) { 229sb_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
235static struct sb_entry* 235static struct sb_entry*
236sb_add (struct sb_data *sb, unsigned char *line, time_t when) { 236sb_add (struct sb_data *sb, unsigned char *line, time_t when) {
@@ -272,8 +272,9 @@ void showout (void)
272 272
273void writeout (unsigned char *str) 273void 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
300unsigned char * 300unsigned char *
301ul_nickcomp (const unsigned char *text, int state) 301ul_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) {
327unsigned char * 327unsigned char *
328ul_cnickcomp (const unsigned char *text, int state) 328ul_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) {
356unsigned char * 356unsigned char *
357ul_mnickcomp (const unsigned char *text, int state) 357ul_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;