Browse Source

lib/exec_shell: cleanup function attributes

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
pull/572/head
Karel Zak 5 years ago
parent
commit
117d079199
  1. 7
      include/exec_shell.h
  2. 2
      lib/exec_shell.c

7
include/exec_shell.h

@ -1 +1,6 @@
extern void __attribute__((__noreturn__)) exec_shell(void);
#ifndef UTIL_LINUX_EXEC_SHELL_H
#define UTIL_LINUX_EXEC_SHELL_H
extern void exec_shell(void) __attribute__((__noreturn__));
#endif /* UTIL_LINUX_EXEC_SHELL_H */

2
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);

Loading…
Cancel
Save