Mercurial > pidgin
diff src/protocols/zephyr/ZParseNot.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 | 424a40f12a6c |
children | 43d6c08d7e96 |
line wrap: on
line diff
--- a/src/protocols/zephyr/ZParseNot.c Tue Nov 11 05:57:24 2003 +0000 +++ b/src/protocols/zephyr/ZParseNot.c Tue Nov 11 07:08:13 2003 +0000 @@ -4,7 +4,7 @@ * Created by: Robert French * * $Source$ - * $Author: warmenhoven $ + * $Author: thekingant $ * * Copyright (c) 1987,1991 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file @@ -155,8 +155,8 @@ if (ZReadAscii(ptr, end-ptr, (unsigned char *)¬ice->z_uid, sizeof(ZUnique_Id_t)) == ZERR_BADFIELD) BAD_PACKET; - notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.tv.tv_sec); - notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.tv.tv_usec); + notice->z_time.tv_sec = ntohl((unsigned long) notice->z_uid.tv.tv_sec); + notice->z_time.tv_usec = ntohl((unsigned long) notice->z_uid.tv.tv_usec); numfields--; next_field (ptr); } @@ -269,8 +269,8 @@ if (ZReadAscii(ptr, end-ptr, (unsigned char *)¬ice->z_multiuid, sizeof(ZUnique_Id_t)) == ZERR_BADFIELD) BAD_PACKET; - notice->z_time.tv_sec = ntohl((u_long) notice->z_multiuid.tv.tv_sec); - notice->z_time.tv_usec = ntohl((u_long) notice->z_multiuid.tv.tv_usec); + notice->z_time.tv_sec = ntohl((unsigned long) notice->z_multiuid.tv.tv_sec); + notice->z_time.tv_usec = ntohl((unsigned long) notice->z_multiuid.tv.tv_usec); numfields--; next_field (ptr); } @@ -286,7 +286,7 @@ for (i=0;i<numfields;i++) next_field (ptr); - notice->z_message = (caddr_t) ptr; + notice->z_message = (void *)ptr; notice->z_message_len = len-(ptr-buffer); return (ZERR_NONE);