This is the irssi-abi-8 branch that was not merged back to master but is necessary for compilation. As it touches a submodule, I can't add a patch for it. But I can backport all of the master commits. Get rid of quasselc dependency as it's now a submodule. Signed-off-by: Rosen Penev <rosenp@gmail.com>lilik-openwrt-22.03
@ -0,0 +1,26 @@ | |||
From 7d4caa6a60af0e584dc5c3dc44437117744f6f84 Mon Sep 17 00:00:00 2001 | |||
From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= <jelmer@jelmer.uk> | |||
Date: Sat, 14 Jan 2017 20:55:00 +0000 | |||
Subject: [PATCH] Use sys/socket.h rather than asm/socket.h. | |||
The latter is not available on some platforms. | |||
--- | |||
core/quasselc-connector.c | 2 +- | |||
1 file changed, 1 insertion(+), 1 deletion(-) | |||
diff --git a/core/quasselc-connector.c b/core/quasselc-connector.c | |||
index 08a3718..77e8d7a 100644 | |||
--- a/core/quasselc-connector.c | |||
+++ b/core/quasselc-connector.c | |||
@@ -16,7 +16,7 @@ | |||
*/ | |||
#define _GNU_SOURCE | |||
-#include <asm/socket.h> | |||
+#include <sys/socket.h> | |||
#include <sys/types.h> | |||
#include <sys/socket.h> | |||
#include <sys/wait.h> | |||
-- | |||
2.19.1 | |||
@ -0,0 +1,28 @@ | |||
From 525ff7ec3bafe9ccbf5802559e2664a25cf925e1 Mon Sep 17 00:00:00 2001 | |||
From: =?UTF-8?q?Bastian=20M=C3=BCller?= <db1bm@gmx.de> | |||
Date: Sat, 12 Aug 2017 10:24:49 +0200 | |||
Subject: [PATCH] Fix nullpointer dereference when leaving an unconnected | |||
window | |||
--- | |||
core/quassel-fe-level.c | 4 ++++ | |||
1 file changed, 4 insertions(+) | |||
diff --git a/core/quassel-fe-level.c b/core/quassel-fe-level.c | |||
index 3d69202..3382ddc 100644 | |||
--- a/core/quassel-fe-level.c | |||
+++ b/core/quassel-fe-level.c | |||
@@ -62,6 +62,10 @@ static void sig_created(WINDOW_REC *winrec, int automatic) { | |||
return; | |||
} | |||
+ if (!winrec->active_server) { | |||
+ return; | |||
+ } | |||
+ | |||
CHANNEL_REC *_chanrec = channel_find(winrec->active_server, winrec->active->visible_name); | |||
if(_chanrec->chat_type != Quassel_PROTOCOL) | |||
return; | |||
-- | |||
2.19.1 | |||
@ -0,0 +1,64 @@ | |||
From ab0dc71822b3e769b4be2a990bc6c87347016cfd Mon Sep 17 00:00:00 2001 | |||
From: Pierre-Hugues Husson <phh@archos.com> | |||
Date: Tue, 12 Sep 2017 17:42:46 +0200 | |||
Subject: [PATCH] Makes gcc7 happy | |||
--- | |||
core/quasselc-connector.c | 7 +++++++ | |||
1 file changed, 7 insertions(+) | |||
diff --git a/core/quasselc-connector.c b/core/quasselc-connector.c | |||
index 77e8d7a..d28fa5e 100644 | |||
--- a/core/quasselc-connector.c | |||
+++ b/core/quasselc-connector.c | |||
@@ -145,6 +145,7 @@ void handle_sync(void* irssi_arg, object_t o, function_t f, ...) { | |||
highlight=0; | |||
if(!fnc) | |||
fnc="MarkBufferAsRead"; | |||
+ /* Falls through */ | |||
case Displayed: | |||
if(!fnc) | |||
fnc="BufferDisplayed"; | |||
@@ -155,6 +156,7 @@ void handle_sync(void* irssi_arg, object_t o, function_t f, ...) { | |||
case Removed: | |||
if(!fnc) | |||
fnc="BufferRemoved"; | |||
+ /* Falls through */ | |||
case TempRemoved: | |||
if(!fnc) | |||
fnc="BufferTempRemoved"; | |||
@@ -210,6 +212,7 @@ void handle_sync(void* irssi_arg, object_t o, function_t f, ...) { | |||
case AddUserMode: | |||
if(!fnc) | |||
fnc="AddUserMode"; | |||
+ /* Falls through */ | |||
case RemoveUserMode: | |||
if(!fnc) | |||
fnc="RemoveUserMode"; | |||
@@ -223,6 +226,7 @@ void handle_sync(void* irssi_arg, object_t o, function_t f, ...) { | |||
case SetNick2: | |||
if(!fnc) | |||
fnc="SetNick"; | |||
+ /* Falls through */ | |||
case Quit: | |||
if(!fnc) | |||
fnc="Quit"; | |||
@@ -233,12 +237,15 @@ void handle_sync(void* irssi_arg, object_t o, function_t f, ...) { | |||
case SetNick: | |||
if(!fnc) | |||
fnc="SetNick"; | |||
+ /* Falls through */ | |||
case SetServer: | |||
if(!fnc) | |||
fnc="SetServer"; | |||
+ /* Falls through */ | |||
case SetRealName: | |||
if(!fnc) | |||
fnc="SetRealName"; | |||
+ /* Falls through */ | |||
case PartChannel: | |||
if(!fnc) | |||
fnc="PartChannel"; | |||
-- | |||
2.19.1 | |||