ソースを参照

improve build

balbekova 3 年 前
コミット
d907ce7015
3 ファイル変更7 行追加4 行削除
  1. 1 1
      modules/ftp.c
  2. 2 1
      modules/syslog.c
  3. 4 2
      modules/whitelist/lwip_hook_ip4_input.c

+ 1 - 1
modules/ftp.c

@@ -375,7 +375,7 @@ anonymous:
         } else if (response==550) {
             s->control_state = LWFTP_QUIT;
             s->error = "Failed to open file";
-            LWIP_DEBUGF(LWFTP_WARNING, ("lwftp: %s '%s'\n", error, s->settings->remote_path));
+            LWIP_DEBUGF(LWFTP_WARNING, ("lwftp: %s '%s'\n", s->error, s->settings->remote_path));
         }
         else {
           s->error = "The server doesn't start sending the file";

+ 2 - 1
modules/syslog.c

@@ -1,6 +1,7 @@
 #pragma GCC diagnostic error "-Wall"
 #pragma GCC diagnostic error "-Wextra"
-#if defined(HARDWARE_BT6711) && !defined(BT6702_SERVICE)
+#include "common_config.h"
+#if defined(SYSLOG_ENABLE) && !defined(BT6702_SERVICE)
 #include "common_config.h"
 #include "syslog.h"
 #include "settings_api.h"

+ 4 - 2
modules/whitelist/lwip_hook_ip4_input.c

@@ -4,8 +4,8 @@
  *  Created on: 20.05.2019
  *      Author: balbekova
  */
-
-
+#include "common_config.h"
+#if defined WHITELIST_ENABLE
 
 #include "lwip_hook_ip4_input.h"
 
@@ -60,3 +60,5 @@ int ip_input_hook(struct pbuf *p, struct netif *inp)
 	}
 
 }
+
+#endif