소스 검색

Fix warning of shadowed newEntry

Stefan Profanter 7 년 전
부모
커밋
c86c8e833f
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      plugins/ua_nodestore_default.c

+ 4 - 4
plugins/ua_nodestore_default.c

@@ -378,16 +378,16 @@ UA_NodeMap_replaceNode(void *context, UA_Node *node) {
         END_CRITSECT(ns);
         return UA_STATUSCODE_BADNODEIDUNKNOWN;
     }
-    UA_NodeMapEntry *newEntry = container_of(node, UA_NodeMapEntry, node);
-    if(*slot != newEntry->orig) {
+    UA_NodeMapEntry *newEntryContainer = container_of(node, UA_NodeMapEntry, node);
+    if(*slot != newEntryContainer->orig) {
         /* The node was updated since the copy was made */
-        deleteEntry(newEntry);
+        deleteEntry(newEntryContainer);
         END_CRITSECT(ns);
         return UA_STATUSCODE_BADINTERNALERROR;
     }
     (*slot)->deleted = true;
     cleanupEntry(*slot);
-    *slot = newEntry;
+    *slot = newEntryContainer;
     END_CRITSECT(ns);
     return UA_STATUSCODE_GOOD;
 }