mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
klish: fix compilation with GCC14
Proper types are now needed. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=klish
|
PKG_NAME:=klish
|
||||||
PKG_VERSION:=2.2.3
|
PKG_VERSION:=2.2.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=http://libcode.org/attachments/download/82
|
PKG_SOURCE_URL:=http://libcode.org/attachments/download/82
|
||||||
|
|||||||
@@ -1,17 +1,20 @@
|
|||||||
--- a/clish/shell/shell_execute.c
|
--- a/clish/shell/shell_execute.c
|
||||||
+++ b/clish/shell/shell_execute.c
|
+++ b/clish/shell/shell_execute.c
|
||||||
@@ -19,12 +19,14 @@
|
@@ -20,7 +20,7 @@
|
||||||
#include <signal.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
+#if 0
|
|
||||||
/* Empty signal handler to ignore signal but don't use SIG_IGN. */
|
/* Empty signal handler to ignore signal but don't use SIG_IGN. */
|
||||||
static void sigignore(int signo)
|
-static void sigignore(int signo)
|
||||||
|
+static void sigignore2(int signo)
|
||||||
{
|
{
|
||||||
signo = signo; /* Happy compiler */
|
signo = signo; /* Happy compiler */
|
||||||
return;
|
return;
|
||||||
}
|
@@ -361,7 +361,7 @@ int clish_shell_exec_action(clish_contex
|
||||||
+#endif
|
*/
|
||||||
|
sa.sa_flags = 0;
|
||||||
/*-------------------------------------------------------- */
|
sigemptyset(&sa.sa_mask);
|
||||||
static int clish_shell_lock(const char *lock_path)
|
- sa.sa_handler = sigignore; /* Empty signal handler */
|
||||||
|
+ sa.sa_handler = sigignore2; /* Empty signal handler */
|
||||||
|
sigaction(SIGINT, &sa, &old_sigint);
|
||||||
|
sigaction(SIGQUIT, &sa, &old_sigquit);
|
||||||
|
sigaction(SIGHUP, &sa, &old_sighup);
|
||||||
|
|||||||
Reference in New Issue
Block a user