]> Creatis software - gdcm.git/commitdiff
BUG: Fix wrong boolean logic
authormalaterre <malaterre>
Mon, 17 Jan 2005 23:11:25 +0000 (23:11 +0000)
committermalaterre <malaterre>
Mon, 17 Jan 2005 23:11:25 +0000 (23:11 +0000)
src/gdcmUtil.cxx

index 67baa7631be0d42082c2503505d32fc19ca0faa8..f0b9def9a836880cb03391b0c1656accf8561cd5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/17 21:42:16 $
-  Version:   $Revision: 1.108 $
+  Date:      $Date: 2005/01/17 23:11:25 $
+  Version:   $Revision: 1.109 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -556,7 +556,7 @@ int GetMacAddrSys ( unsigned char *addr )
    char buf[1024];
    int      n, i;
    unsigned char    *a;
-#if defined(AF_LINK) && !(defined(SIOCGIFHWADDR) || !defined(SIOCGENADDR))
+#if defined(AF_LINK) && (!defined(SIOCGIFHWADDR) && !defined(SIOCGENADDR))
    struct sockaddr_dl *sdlp;
 #endif