Mercurial > pidgin
comparison libpurple/protocols/gg/lib/pubdir50.c @ 17147:7175af86ec01
Our in-tree gadu-gadu lib doesn't include the glib headers. I don't know
if that's something we want to do or not, so I changed these two
g_ascii_strcasecmp() calls to strcasecmp() so that it compiles once again.
The error was:
lib/pubdir50.c: In function 'gg_pubdir50_handle_reply':
lib/pubdir50.c:350: error: implicit declaration of function 'g_ascii_strcasecmp'
lib/pubdir50.c:350: warning: nested extern declaration of 'g_ascii_strcasecmp'
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 20 May 2007 06:30:16 +0000 |
parents | 7ade887fd3f6 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
17146:e5cc13b1e0ca | 17147:7175af86ec01 |
---|---|
345 | 345 |
346 p++; | 346 p++; |
347 | 347 |
348 /* jeśli dostaliśmy namier na następne wyniki, to znaczy że | 348 /* jeśli dostaliśmy namier na następne wyniki, to znaczy że |
349 * mamy koniec wyników i nie jest to kolejna osoba. */ | 349 * mamy koniec wyników i nie jest to kolejna osoba. */ |
350 if (!g_ascii_strcasecmp(field, "nextstart")) { | 350 if (!strcasecmp(field, "nextstart")) { |
351 res->next = atoi(value); | 351 res->next = atoi(value); |
352 num--; | 352 num--; |
353 } else { | 353 } else { |
354 if (gg_pubdir50_add_n(res, num, field, value) == -1) | 354 if (gg_pubdir50_add_n(res, num, field, value) == -1) |
355 goto failure; | 355 goto failure; |
388 errno = EINVAL; | 388 errno = EINVAL; |
389 return NULL; | 389 return NULL; |
390 } | 390 } |
391 | 391 |
392 for (i = 0; i < res->entries_count; i++) { | 392 for (i = 0; i < res->entries_count; i++) { |
393 if (res->entries[i].num == num && !g_ascii_strcasecmp(res->entries[i].field, field)) { | 393 if (res->entries[i].num == num && !strcasecmp(res->entries[i].field, field)) { |
394 value = res->entries[i].value; | 394 value = res->entries[i].value; |
395 break; | 395 break; |
396 } | 396 } |
397 } | 397 } |
398 | 398 |