Explorar o código

small simplifications

Julius Pfrommer %!s(int64=10) %!d(string=hai) anos
pai
achega
f6fd24ade2
Modificáronse 3 ficheiros con 2 adicións e 5 borrados
  1. 0 1
      examples/src/opcuaServer.c
  2. 0 2
      src/ua_types.h
  3. 2 2
      tools/generate_builtin.py

+ 0 - 1
examples/src/opcuaServer.c

@@ -9,7 +9,6 @@
  */
 #define _XOPEN_SOURCE 1 //TODO HACK
 #include <stdio.h>
-#include <stdlib.h>
 
 #include "networklayer.h"
 #include "ua_application.h"

+ 0 - 2
src/ua_types.h

@@ -318,8 +318,6 @@ void UA_ByteString_printx_hex(char *label, const UA_ByteString *string);
 UA_Int32 UA_NodeId_equal(const UA_NodeId *n1, const UA_NodeId *n2);
 void UA_NodeId_printf(char *label, const UA_NodeId *node);
 UA_Boolean UA_NodeId_isNull(const UA_NodeId *p);
-UA_Int16 UA_NodeId_getNamespace(UA_NodeId const *id);
-UA_Int16 UA_NodeId_getIdentifier(UA_NodeId const *id);
 UA_Boolean UA_NodeId_isBasicType(UA_NodeId const *id);
 
 /* ExpandedNodeId */

+ 2 - 2
tools/generate_builtin.py

@@ -16,8 +16,8 @@ ns = {"opc": "http://opcfoundation.org/BinarySchema/"}
 tree = etree.parse(sys.argv[1])
 types = tree.xpath("/opc:TypeDictionary/*[not(self::opc:Import)]", namespaces=ns)
 
-fh = open(sys.argv[2] + ".h",'w');
-fc = open(sys.argv[2] + ".c",'w');
+fh = open(sys.argv[2] + ".h",'w')
+fc = open(sys.argv[2] + ".c",'w')
 
 # dirty hack. we go up the call frames to access local variables of the calling
 # function. this allows to shorten code and get %()s replaces with less clutter.