From: didg Date: Sat, 17 Feb 2007 03:25:17 +0000 (+0000) Subject: fix for loopback test on big endian box X-Git-Tag: before_acls~75 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=6083a9ae095fa0de783d348c032a5fe2b6ec0edf fix for loopback test on big endian box --- diff --git a/libatalk/dsi/dsi_tcp.c b/libatalk/dsi/dsi_tcp.c index 0b12e556..063faf73 100644 --- a/libatalk/dsi/dsi_tcp.c +++ b/libatalk/dsi/dsi_tcp.c @@ -1,5 +1,5 @@ /* - * $Id: dsi_tcp.c,v 1.10 2005-04-28 20:50:02 bfernhomberg Exp $ + * $Id: dsi_tcp.c,v 1.11 2007-02-17 03:25:17 didg Exp $ * * Copyright (c) 1997, 1998 Adrian Sun (asun@zoology.washington.edu) * All rights reserved. See COPYRIGHT. @@ -297,7 +297,7 @@ int dsi_tcp_init(DSI *dsi, const char *hostname, const char *address, } } else { - if (((struct in_addr *) host->h_addr)->s_addr != 0x100007F) { /* FIXME ugly check */ + if (((struct in_addr *) host->h_addr)->s_addr != htonl(0x7F000001)) { /* FIXME ugly check */ dsi->server.sin_addr.s_addr = ((struct in_addr *) host->h_addr)->s_addr; return 1; }