From c1c45ce93b68d1e7e835516fefc87c95849adbe8 Mon Sep 17 00:00:00 2001 From: malaterre Date: Sat, 15 Jan 2005 21:45:48 +0000 Subject: [PATCH] BUG: was not returning 0 as expected --- src/gdcmUtil.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.48.1