X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=df94971e5654fb511429dfb73580f21d1b31c0fd;hb=d7531a8099267279c067b9115309cdc10f8eb46d;hp=df341c88e32bd444b5630709504cab3b082e0aa2;hpb=48dd5ec3ffe0b70e8a687ec29a1f0b1fb9a4b5eb;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index df341c88..df94971e 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/11/03 08:47:52 $ - Version: $Revision: 1.173 $ + Date: $Date: 2005/11/22 20:30:46 $ + Version: $Revision: 1.176 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,6 +19,7 @@ #include "gdcmUtil.h" #include "gdcmDebug.h" #include +#include // for va_list // For GetCurrentDate, GetCurrentTime #include @@ -813,7 +814,7 @@ int GetMacAddrSys ( unsigned char *addr ) close(sd); #endif // Not implemented platforms (or no cable !) - perror("in Get MAC Adress (internal) : There was a configuration problem on your plateform"); + perror("in Get MAC Adress (internal) : There was a configuration problem (or no cable !) on your plateform"); memset(addr,0,6); return -1; #endif //__sun @@ -837,7 +838,7 @@ inline int getlastdigit(unsigned char *data) } /** - * \brief Encode the mac address on a fixed lenght string of 15 characters. + * \brief Encode the mac address on a fixed length string of 15 characters. * we save space this way. */ std::string Util::GetMACAddress() @@ -876,8 +877,8 @@ std::string Util::GetMACAddress() } /** - * \brief Creates a new UID. As stipulate in the DICOM ref - * each time a DICOM image is create it should have + * \brief Creates a new UID. As stipulated in the DICOM ref + * each time a DICOM image is created it should have * a unique identifier (URI) * @param root is the DICOM prefix assigned by IOS group */ @@ -978,7 +979,7 @@ std::ostream &binary_write(std::ostream &os, const uint32_t &val) std::ostream &binary_write(std::ostream &os, const double &val) { #if defined(GDCM_WORDS_BIGENDIAN) || defined(GDCM_FORCE_BIGENDIAN_EMULATION) - double swap; + double swap = val; char *beg = (char *)&swap; char *end = beg + 7;