summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak2018-02-01 12:25:39 +0100
committerKarel Zak2018-02-01 12:25:39 +0100
commit117d079199a723d06cfd4daee386a0e54423e8ba (patch)
treed08a06d1f2094de75e4e7b58afcbb605c1f91b5d /lib
parentMerge branch 'libblkid-atari' of https://github.com/yontalcar/util-linux (diff)
downloadkernel-qcow2-util-linux-117d079199a723d06cfd4daee386a0e54423e8ba.tar.gz
kernel-qcow2-util-linux-117d079199a723d06cfd4daee386a0e54423e8ba.tar.xz
kernel-qcow2-util-linux-117d079199a723d06cfd4daee386a0e54423e8ba.zip
lib/exec_shell: cleanup function attributes
Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/exec_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exec_shell.c b/lib/exec_shell.c
index a7374bd33..b2f178add 100644
--- a/lib/exec_shell.c
+++ b/lib/exec_shell.c
@@ -30,7 +30,7 @@
#define DEFAULT_SHELL "/bin/sh"
-void exec_shell(void)
+void __attribute__((__noreturn__)) exec_shell(void)
{
const char *shell = getenv("SHELL");
char *shellc = xstrdup(shell);