From: malaterre Date: Sat, 15 Jan 2005 21:45:48 +0000 (+0000) Subject: BUG: was not returning 0 as expected X-Git-Tag: Version1.0.bp~313 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c1c45ce93b68d1e7e835516fefc87c95849adbe8;p=gdcm.git BUG: was not returning 0 as expected --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 1bcba04c..6784ef1d 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/15 21:36:01 $ - Version: $Revision: 1.93 $ + Date: $Date: 2005/01/15 21:45:48 $ + Version: $Revision: 1.94 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -554,7 +554,8 @@ long GetMacAddrSys ( unsigned char *addr) if(status == -1) { perror("SIOCGARP"); - exit(-1); + //exit(-1); + return -1; } memcpy(addr, parpreq.arp_ha.sa_data, 6); @@ -568,6 +569,7 @@ long GetMacAddrSys ( unsigned char *addr) // // parpreq.arp_ha.sa_data[5]); + return 0; #else #ifdef CMAKE_HAVE_NET_IF_H int sd;