You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
941 B

  1. --- a/src/conf.h
  2. +++ b/src/conf.h
  3. @@ -430,12 +430,12 @@ void clear_trusted_ip_list(void);
  4. void del_trusted_ip_list(const char *);
  5. // online clients
  6. -int g_online_clients; // total connected client count
  7. -char *g_version;
  8. -char *g_type; // hardware type
  9. -char *g_name; // firmware name
  10. -char *g_channel_path;
  11. -char *g_ssid;
  12. +extern int g_online_clients; // total connected client count
  13. +extern char *g_version;
  14. +extern char *g_type; // hardware type
  15. +extern char *g_name; // firmware name
  16. +extern char *g_channel_path;
  17. +extern char *g_ssid;
  18. #define LOCK_DOMAIN() do { \
  19. debug(LOG_INFO, "Locking domain"); \
  20. --- a/src/ping_thread.c
  21. +++ b/src/ping_thread.c
  22. @@ -43,6 +43,12 @@
  23. #include "wd_client.h"
  24. extern time_t started_time;
  25. +int g_online_clients;
  26. +char *g_version;
  27. +char *g_type;
  28. +char *g_name;
  29. +char *g_channel_path;
  30. +char *g_ssid;
  31. static void fw_init_delay();
  32. static void ping_work_cb(evutil_socket_t, short, void *);