Browse Source

fixing last mingw issue, relates #114

Stasik0 9 years ago
parent
commit
d197edd171
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/opcuaServerDataSource.c

+ 4 - 4
examples/opcuaServerDataSource.c

@@ -19,12 +19,12 @@
 
 // data source
 static UA_StatusCode readTimeData(const void *handle, UA_VariantData* data) {
-    UA_DateTime *time = UA_DateTime_new();
-    if(!time)
+    UA_DateTime *currentTime = UA_DateTime_new();
+    if(!currentTime)
         return UA_STATUSCODE_BADOUTOFMEMORY;
-    *time = UA_DateTime_now();
+    *currentTime = UA_DateTime_now();
     data->arrayLength = 1;
-    data->dataPtr = time;
+    data->dataPtr = currentTime;
     data->arrayDimensionsSize = -1;
     data->arrayDimensions = UA_NULL;
     return UA_STATUSCODE_GOOD;