Mercurial > pidgin
comparison src/protocols/zephyr/zephyr.c @ 7475:08ce2a94d9c7
[gaim-migrate @ 8088]
I made Gaim compile with -ansi in my CFLAGS... I don't really know why.
I had to set HAVE_GETADDRINFO and HAVE_SIGNAL_H to 0
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 11 Nov 2003 07:08:13 +0000 |
parents | ab828b8c3f22 |
children | 0555e59dfba9 |
comparison
equal
deleted
inserted
replaced
7474:2bdacd38528c | 7475:08ce2a94d9c7 |
---|---|
364 char *buf, *buf2; | 364 char *buf, *buf2; |
365 char *send_inst; | 365 char *send_inst; |
366 char *realmptr; | 366 char *realmptr; |
367 char *sendertmp; | 367 char *sendertmp; |
368 char *ptr = notice.z_message + strlen(notice.z_message) + 1; | 368 char *ptr = notice.z_message + strlen(notice.z_message) + 1; |
369 int len = notice.z_message_len - (ptr - notice.z_message); | 369 int len = notice.z_message_len - ((int)ptr - (int)notice.z_message); |
370 GaimConvImFlags flags = 0; | 370 GaimConvImFlags flags = 0; |
371 if (len > 0) { | 371 if (len > 0) { |
372 buf = g_malloc(len + 1); | 372 buf = g_malloc(len + 1); |
373 g_snprintf(buf, len + 1, "%s", ptr); | 373 g_snprintf(buf, len + 1, "%s", ptr); |
374 g_strchomp(buf); | 374 g_strchomp(buf); |