Переглянути джерело

one-character fix of #26
(my bad)

Julius Pfrommer 11 роки тому
батько
коміт
2b059b0025
2 змінених файлів з 4 додано та 3 видалено
  1. 3 3
      src/Makefile.am
  2. 1 0
      src/opcua_namespace.c

+ 3 - 3
src/Makefile.am

@@ -34,9 +34,9 @@ libopen62541_la_SOURCES = 			opcua.c\
 						opcua_secureChannelLayer.h\
 						tcp_layer.h\
 						util/UA_list.c\
-						util/UA_indexedList.c#\
-						#opcua_namespace.h\
-						#opcua_namespace.c
+						util/UA_indexedList.c\
+						opcua_namespace.h\
+						opcua_namespace.c
 
 #bin_PROGRAMS= $(top_builddir)/bin/open62541.out
 #__top_builddir__bin_libOpen62541_out_SOURCES = opcuaServer.c

+ 1 - 0
src/opcua_namespace.c

@@ -227,6 +227,7 @@ void delete(namespace *ns, UA_NodeId *nodeid) {
 	/* Downsize the hashmap if it is very empty */
 	if(ns->count*8 < ns->size && ns->size > 32) {
 		expand(ns);
+	}
 }
 
 /* Hashing inspired by code from from http://www.azillionmonkeys.com/qed/hash.html, licensed under the LGPL 2.1 */