void display_address_book_middle_div(void) {
char buf[256];
long len;
- char *Name, *Namee;
+ char *Name;
+ void *Namee;
HashList *List;
HashPos *it;
SortByHashKey(List);
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
+ while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
wprintf("<option value=\"");
- urlescputs(Namee);
+ urlescputs((char*)Namee);
wprintf("\">");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("</option>\n");
}
DeleteHashPos(&it);
char target_id[64];
char target_label[64];
long len;
- char *Name, *Namee;
+ char *Name;
+ void *Namee;
HashList *List;
HashPos *it;
int i;
}
SortByHashKey(List);
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
+ while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
wprintf("<option value=\"");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("\">");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("</option>\n");
}
DeleteHashPos(&it);
it = GetNewHashPos();
while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
wprintf("<option value=\"");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("\">");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("</option>\n");
}
DeleteHashPos(&it);
long len;
HashPos *HashPos;
HashList *Hash;
- char *Value;
+ void *Value;
char *Key;
Hash = WC->hash_prefs;
PrintHash(Hash, PrintPref, NULL);
HashPos = GetNewHashPos();
- while (GetNextHashPos(Hash, HashPos, &len, &Key, (void**)&Value)!=0)
+ while (GetNextHashPos(Hash, HashPos, &len, &Key, &Value)!=0)
{
- serv_printf("%s|%s", Key, Value);
+ serv_printf("%s|%s", Key, (char*)Value);
}
serv_puts("");
serv_puts("000");
int z;
long len;
char this_zone[128];
- char *ZName, *ZNamee;
+ char *ZName;
+ void *ZNamee;
HashList *List;
HashPos *it;
}
SortByHashKey(List);
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &ZName, (void**)&ZNamee)) {
+ while (GetNextHashPos(List, it, &len, &ZName, &ZNamee)) {
sprintf(&general[strlen(general)], "<option %s value=\"%s\">%s</option>\n",
- (!strcasecmp(ZName, buf) ? "selected" : ""),
+ (!strcasecmp((char*)ZName, buf) ? "selected" : ""),
ZName, ZName
);
}
{
struct wcsession *WCC = WC; /* This is done to make it run faster; WC is a function */
UserStateStruct *User, *OldUser;
+ void *VOldUser;
char buf[SIZ], user[SIZ], room[SIZ], host[SIZ],
realroom[SIZ], realhost[SIZ];
size_t BufLen;
User->Idle = (now - User->LastActive) > 900L;
User->SessionCount = 1;
- if (GetHash(List, User->UserName, User->UserNameLen, (void**)&OldUser)) {
+ if (GetHash(List, User->UserName, User->UserNameLen, &VOldUser)) {
+ OldUser = VOldUser;
OldUser->SessionCount++;
if (!User->Idle) {
if (User->Session == WCC->ctdl_pid)
*/
void who_inner_div(void) {
UserStateStruct *User;
+ void *VUser;
char buf[SIZ];
struct wcsession *WCC = WC; /* This is done to make it run faster; WC is a function */
HashList *List;
if (GetWholistSection(List, now)) {
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &UserName, (void**)&User)) {
-
+ while (GetNextHashPos(List, it, &len, &UserName, &VUser)) {
+ User = VUser;
bg = 1 - bg;
wprintf("<tr class=\"%s\">",
(bg ? "even" : "odd")
*/
void wholist_section(void) {
UserStateStruct *User;
+ void *VUser;
HashList *List;
HashPos *it;
char *UserName;
if (GetWholistSection(List, now)) {
SortByPayload(List, CompareUserStruct);
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &UserName, (void**)&User)) {
+ while (GetNextHashPos(List, it, &len, &UserName, &VUser)) {
+ User = VUser;
if (strcmp(User->UserName, NLI)) {
wprintf("<li class=\"");
if (User->Idle) {