Mercurial > pidgin.yaz
diff src/protocols/oscar/util.c @ 6323:5d7063e137da
[gaim-migrate @ 6822]
"3) fixes one prototype which was shadowing the index function from
strings.h." --Zach Rusin
Eh.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 29 Jul 2003 04:42:12 +0000 |
parents | dd2be7cd66df |
children | 697221d5d0ff |
line wrap: on
line diff
--- a/src/protocols/oscar/util.c Tue Jul 29 04:27:31 2003 +0000 +++ b/src/protocols/oscar/util.c Tue Jul 29 04:42:12 2003 +0000 @@ -40,7 +40,7 @@ * -- DMP. * */ -faim_export int aimutil_tokslen(char *toSearch, int index, char dl) +faim_export int aimutil_tokslen(char *toSearch, int theindex, char dl) { int curCount = 1; char *next; @@ -50,13 +50,13 @@ last = toSearch; next = strchr(toSearch, dl); - while(curCount < index && next != NULL) { + while(curCount < theindex && next != NULL) { curCount++; last = next + 1; next = strchr(last, dl); } - if ((curCount < index) || (next == NULL)) + if ((curCount < theindex) || (next == NULL)) toReturn = strlen(toSearch) - (curCount - 1); else toReturn = next - toSearch - (curCount - 1); @@ -81,7 +81,7 @@ return curCount; } -faim_export char *aimutil_itemindex(char *toSearch, int index, char dl) +faim_export char *aimutil_itemindex(char *toSearch, int theindex, char dl) { int curCount; char *next; @@ -93,19 +93,19 @@ last = toSearch; next = strchr(toSearch, dl); - while (curCount < index && next != NULL) { + while (curCount < theindex && next != NULL) { curCount++; last = next + 1; next = strchr(last, dl); } - if (curCount < index) { + if (curCount < theindex) { toReturn = malloc(sizeof(char)); *toReturn = '\0'; } next = strchr(last, dl); - if (curCount < index) { + if (curCount < theindex) { toReturn = malloc(sizeof(char)); *toReturn = '\0'; } else {