]> arthur.barton.de Git - netatalk.git/commitdiff
fix for loopback test on big endian box
authordidg <didg>
Sat, 17 Feb 2007 03:13:29 +0000 (03:13 +0000)
committerdidg <didg>
Sat, 17 Feb 2007 03:13:29 +0000 (03:13 +0000)
libatalk/dsi/dsi_tcp.c

index ae82820e110d680ecc3ca2b8031d83ec5c6d15f5..0d58394868eec759946530f477cb20e52dc29f22 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dsi_tcp.c,v 1.9.10.7.2.1 2005-01-11 23:00:42 didg Exp $
+ * $Id: dsi_tcp.c,v 1.9.10.7.2.2 2007-02-17 03:13:29 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;
       }