changeset 11430:4b7087777411

[gaim-migrate @ 13667] srv: fix for non 32-bit int plattforms committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Fri, 02 Sep 2005 20:50:03 +0000
parents 835dbb1b3337
children d2e44c8085e0
files src/dnssrv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dnssrv.c	Fri Sep 02 19:48:26 2005 +0000
+++ b/src/dnssrv.c	Fri Sep 02 20:50:03 2005 +0000
@@ -154,7 +154,7 @@
 		}
 	}
 end:	size = g_list_length(ret);
-	write(out, &size, 4);
+	write(out, &size, sizeof(int));
 	while(g_list_first(ret)) {
 		write(out, g_list_first(ret)->data, sizeof(struct srv_response));
 		g_free(g_list_first(ret)->data);
@@ -175,7 +175,7 @@
 	int i;
 	SRVCallback cb = rdata->cb;
 
-	read(source, &size, 4);
+	read(source, &size, sizeof(int));
 	gaim_debug_info("srv","found %d SRV entries\n", size);
 	tmp = res = g_malloc0(sizeof(struct srv_response)*size);
 	i = size;