Просмотр исходного кода

Fix mingw call to configureDomain and missing types

Jan Kåre Vatne 7 лет назад
Родитель
Сommit
505b5d6bf8

+ 1 - 1
source/src/ports/MINGW/main.c

@@ -46,7 +46,7 @@ int main(int argc,
                                CipConnectionObjectListArrayAllocator,
                                CipConnectionObjectListArrayAllocator,
                                CipConnectionObjectListArrayFree);
                                CipConnectionObjectListArrayFree);
     /* fetch Internet address info from the platform */
     /* fetch Internet address info from the platform */
-    ConfigureDomainName(arg[1] );
+    ConfigureDomainName();
     ConfigureHostName();
     ConfigureHostName();
     ConfigureNetworkInterface(arg[1] );
     ConfigureNetworkInterface(arg[1] );
   }
   }

+ 3 - 1
source/src/ports/MINGW/sample_application/opener_user_conf.h

@@ -22,6 +22,8 @@
  *    - inet_addr
  *    - inet_addr
  */
  */
 
 
+ #include "typedefs.h"
+
 typedef unsigned short in_port_t;
 typedef unsigned short in_port_t;
 
 
 /** @brief Identity configuration of the device */
 /** @brief Identity configuration of the device */
@@ -114,7 +116,7 @@ static const int kOpenerProducedDataHasRunIdleHeader = 0;
                 __LINE__); \
                 __LINE__); \
       while(1) {;} \
       while(1) {;} \
     } \
     } \
-  } while(0)
+  } while(0);
 
 
 /* else use standard assert() */
 /* else use standard assert() */
 //#include <assert.h>
 //#include <assert.h>