فهرست منبع

Fix mingw call to configureDomain and missing types

Jan Kåre Vatne 7 سال پیش
والد
کامیت
505b5d6bf8
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 1
      source/src/ports/MINGW/main.c
  2. 3 1
      source/src/ports/MINGW/sample_application/opener_user_conf.h

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

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

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

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