You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/03/08 11:13:31 UTC

cvs commit: ws-axis/c/src/soap/xsd DateTime.cpp

samisa      2005/03/08 02:13:31

  Modified:    c/src/soap/xsd DateTime.cpp
  Log:
  Eliminated compiler warnings. AXISCPP-517
  
  Revision  Changes    Path
  1.15      +3 -3      ws-axis/c/src/soap/xsd/DateTime.cpp
  
  Index: DateTime.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/DateTime.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DateTime.cpp	4 Mar 2005 13:51:40 -0000	1.14
  +++ DateTime.cpp	8 Mar 2005 10:13:31 -0000	1.15
  @@ -227,12 +227,12 @@
           /*if the timezone is represented adding 'Z' at the end */
           if ((cTemp = const_cast<char*>(strpbrk (valueAsChar, "Z"))) != NULL)
           {
  -            time_t temp = mktime (&value); // convert tm object to seconds
  -            if (temp == -1)
  +            time_t tempmktime = mktime (&value); // convert tm object to seconds
  +            if (tempmktime == -1)
               {
               	throw AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR);
               }
  -            pTm = localtime (&temp); // construct tm object from seconds
  +            pTm = localtime (&tempmktime); // construct tm object from seconds
               memcpy (&value, pTm, sizeof (tm));
               time_t t = mktime (&value);
               if (t == -1)