From ab0afe3e7c20ebded214e13e5c7ed402a830394a Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sat, 14 Sep 1996 03:13:11 +0000 Subject: [PATCH] foo git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@736 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/kxd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appl/kx/kxd.c b/appl/kx/kxd.c index 112f06294..1fc24e8f8 100644 --- a/appl/kx/kxd.c +++ b/appl/kx/kxd.c @@ -172,7 +172,7 @@ create_and_write_cookie (char *xauthfile, auth.name = COOKIE_TYPE; auth.name_length = strlen(auth.name); auth.data_length = sz; - auth.data = cookie; + auth.data = (char*)cookie; des_rand_data (cookie, sz); cookie_len = sz; @@ -194,6 +194,7 @@ doit(int sock) des_key_schedule schedule; des_cblock key; int localx; + u_int32_t tmp; if (recv_conn (sock, &key, schedule, &thataddr)) return 1; @@ -203,9 +204,8 @@ doit(int sock) localx = get_local_xsocket (&display_num); if (localx < 0) return 1; - display_num = htonl(display_num); - if (write (sock, &display_num, sizeof(display_num)) != - sizeof(display_num)) + tmp = htonl(display_num); + if (write (sock, &tmp, sizeof(tmp)) != sizeof(tmp)) return 1; strncpy(xauthfile, tempnam("/tmp", NULL), sizeof(xauthfile)); if (write (sock, xauthfile, sizeof(xauthfile)) !=