From 2a832377b88edb591b2795efc503d662a2ae76c7 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 1 May 2021 13:36:43 +0100 Subject: [PATCH] fix implicit declarations --- src/common/outbound.c | 1 + src/common/proto-irc.c | 1 + src/common/ssl.c | 2 ++ src/common/util.h | 2 ++ src/fe-gtk/chanlist.c | 2 +- src/fe-gtk/fe-gtk.c | 3 ++- src/fe-gtk/maingui.c | 1 + src/fe-gtk/menu.c | 1 + src/fe-gtk/notifygui.c | 1 + src/fe-gtk/plugin-tray.c | 1 + src/fe-gtk/servlistgui.c | 2 ++ src/fe-gtk/servlistgui.h | 4 ++++ src/fe-gtk/setup.c | 2 ++ src/fe-gtk/setup.h | 5 +++++ src/fe-gtk/userlistgui.c | 1 + 15 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/fe-gtk/servlistgui.h create mode 100644 src/fe-gtk/setup.h diff --git a/src/common/outbound.c b/src/common/outbound.c index 8609b85..ddcc6b9 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -52,6 +52,7 @@ #include "server.h" #include "tree.h" #include "outbound.h" +#include "chanopt.h" #ifdef USE_DEBUG diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 837cd6f..c151021 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -39,6 +39,7 @@ #include "util.h" #include "xchatc.h" #include "servlist.h" +#include "url.h" static void irc_login (server *serv, char *user, char *realname) diff --git a/src/common/ssl.c b/src/common/ssl.c index 13b163a..8ce8b98 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -23,6 +23,8 @@ #include /* strncpy() */ #include "ssl.h" /* struct cert_info */ #include "inet.h" +#include "util.h" + #ifndef MIN #define MIN(a, b) (a < b ? a : b) #endif diff --git a/src/common/util.h b/src/common/util.h index 604d766..45020fd 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -14,6 +14,8 @@ #ifndef XCHAT_UTIL_H #define XCHAT_UTIL_H +#include + #define rfc_tolower(c) (rfc_tolowertab[(unsigned char)(c)]) extern const unsigned char rfc_tolowertab[]; diff --git a/src/fe-gtk/chanlist.c b/src/fe-gtk/chanlist.c index ce994dd..e6e0b03 100644 --- a/src/fe-gtk/chanlist.c +++ b/src/fe-gtk/chanlist.c @@ -51,7 +51,7 @@ #include "../common/server.h" #include "gtkutil.h" #include "maingui.h" - +#include "menu.h" #include "custom-list.h" diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 9528ca9..949b7d9 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -46,6 +46,7 @@ #include "xtext.h" #include "palette.h" #include "menu.h" +#include "setup.h" #include "notifygui.h" #include "textgui.h" #include "fkeys.h" @@ -695,7 +696,7 @@ fe_ctrl_gui (session *sess, fe_gui_action action, int arg) mg_detach (sess, arg); /* arg: 0=toggle 1=detach 2=attach */ break; case FE_GUI_APPLY: - setup_apply_real (TRUE, TRUE); + setup_apply_real (TRUE, TRUE, FALSE); } } diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 91e054a..a22a93c 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -53,6 +53,7 @@ #include "../common/plugin.h" #include "../common/modes.h" #include "../common/url.h" +#include "../common/text.h" #include "fe-gtk.h" #include "banlist.h" #include "gtkutil.h" diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c index f921a5a..988e0f2 100644 --- a/src/fe-gtk/menu.c +++ b/src/fe-gtk/menu.c @@ -67,6 +67,7 @@ #include "urlgrab.h" #include "userlistgui.h" #include "menu.h" +#include "servlistgui.h" static GSList *submenu_list; diff --git a/src/fe-gtk/notifygui.c b/src/fe-gtk/notifygui.c index 5acb683..83a9b57 100644 --- a/src/fe-gtk/notifygui.c +++ b/src/fe-gtk/notifygui.c @@ -45,6 +45,7 @@ #include "../common/server.h" #include "../common/util.h" #include "../common/userlist.h" +#include "../common/outbound.h" #include "gtkutil.h" #include "maingui.h" #include "palette.h" diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c index 95f6aa6..1b7475a 100644 --- a/src/fe-gtk/plugin-tray.c +++ b/src/fe-gtk/plugin-tray.c @@ -9,6 +9,7 @@ #include "../common/server.h" #include "../common/fe.h" #include "../common/util.h" +#include "../common/outbound.h" #include "fe-gtk.h" #include "pixmaps.h" #include "maingui.h" diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index 019ae89..3b780f5 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -37,11 +37,13 @@ #include "../common/servlist.h" #include "../common/cfgfiles.h" #include "../common/fe.h" +#include "../common/util.h" #include "fe-gtk.h" #include "gtkutil.h" #include "menu.h" #include "pixmaps.h" +#include "servlistgui.h" /* servlistgui.c globals */ diff --git a/src/fe-gtk/servlistgui.h b/src/fe-gtk/servlistgui.h new file mode 100644 index 0000000..6b47761 --- /dev/null +++ b/src/fe-gtk/servlistgui.h @@ -0,0 +1,4 @@ +#ifndef GTK_SERVLISTGUI_H +#define GTK_SERVLISTGUI_H +void servlist_autojoinedit (ircnet *net, char *channel, gboolean add); +#endif diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 6ac39c4..a42f823 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -21,6 +21,8 @@ #include "palette.h" #include "pixmaps.h" #include "menu.h" +#include "setup.h" +#include "plugin-tray.h" #include #include diff --git a/src/fe-gtk/setup.h b/src/fe-gtk/setup.h new file mode 100644 index 0000000..a8546d3 --- /dev/null +++ b/src/fe-gtk/setup.h @@ -0,0 +1,5 @@ +#ifndef GTK_SETUP_H +#define GTK_SETUP_H +void setup_apply_real (int new_pix, int do_ulist, int do_layout); +#endif + diff --git a/src/fe-gtk/userlistgui.c b/src/fe-gtk/userlistgui.c index f88c9d5..cb2c84d 100644 --- a/src/fe-gtk/userlistgui.c +++ b/src/fe-gtk/userlistgui.c @@ -40,6 +40,7 @@ #include "../common/modes.h" #include "../common/notify.h" #include "../common/xchatc.h" +#include "../common/fe.h" #include "gtkutil.h" #include "palette.h" #include "maingui.h" -- 2.11.4.GIT