comparison src/server.c @ 411:a330017b3aa4

[gaim-migrate @ 421] Trying to make things compile cleanly committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Jun 2000 05:27:25 +0000
parents bb87776942c4
children f9dc74875833
comparison
equal deleted inserted replaced
410:9e8c02ed5d06 411:a330017b3aa4
184 } 184 }
185 185
186 void serv_get_away_msg(char *name) 186 void serv_get_away_msg(char *name)
187 { 187 {
188 #ifndef USE_OSCAR 188 #ifndef USE_OSCAR
189 char buf[MSG_LEN];
190 /* HAHA! TOC doesn't have this yet */ 189 /* HAHA! TOC doesn't have this yet */
191 #else 190 #else
192 aim_getinfo(gaim_sess, gaim_conn, name, AIM_GETINFO_AWAYMESSAGE); 191 aim_getinfo(gaim_sess, gaim_conn, name, AIM_GETINFO_AWAYMESSAGE);
193 #endif 192 #endif
194 } 193 }
317 while(buddies) { 316 while(buddies) {
318 if (n > MSG_LEN - 18) { 317 if (n > MSG_LEN - 18) {
319 aim_bos_setbuddylist(gaim_sess, gaim_conn, buf); 318 aim_bos_setbuddylist(gaim_sess, gaim_conn, buf);
320 n = 0; 319 n = 0;
321 } 320 }
322 n += g_snprintf(buf + n, sizeof(buf) - n, "%s&", buddies->data); 321 n += g_snprintf(buf + n, sizeof(buf) - n, "%s&",
322 (char *)buddies->data);
323 buddies = buddies->next; 323 buddies = buddies->next;
324 } 324 }
325 aim_bos_setbuddylist(gaim_sess, gaim_conn, buf); 325 aim_bos_setbuddylist(gaim_sess, gaim_conn, buf);
326 #endif 326 #endif
327 } 327 }
421 } 421 }
422 grp = grp->next; 422 grp = grp->next;
423 } 423 }
424 while (list) { 424 while (list) {
425 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", 425 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&",
426 list->data); 426 (char *)list->data);
427 list = list->next; 427 list = list->next;
428 } 428 }
429 aim_bos_changevisibility(gaim_sess, gaim_conn, 429 aim_bos_changevisibility(gaim_sess, gaim_conn,
430 AIM_VISIBILITYCHANGE_PERMITADD, buf); 430 AIM_VISIBILITYCHANGE_PERMITADD, buf);
431 } else { /* Deny Some : Deny people on deny list */ 431 } else { /* Deny Some : Deny people on deny list */
432 list = deny; at = 0; 432 list = deny; at = 0;
433 if (list == NULL) return; 433 if (list == NULL) return;
434 while (list) { 434 while (list) {
435 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", 435 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&",
436 list->data); 436 (char *)list->data);
437 list = list->next; 437 list = list->next;
438 } 438 }
439 aim_bos_changevisibility(gaim_sess, gaim_conn, 439 aim_bos_changevisibility(gaim_sess, gaim_conn,
440 AIM_VISIBILITYCHANGE_DENYADD, buf); 440 AIM_VISIBILITYCHANGE_DENYADD, buf);
441 } 441 }