From: Sami Kerola Date: Tue, 30 Dec 2014 23:22:33 +0000 (+0000) Subject: script: add noreturn function attributes X-Git-Tag: v2.27-rc1~132^2~9^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ddadb5eda64d6c2ba3ca7c7260ff89de9e1bc27;p=thirdparty%2Futil-linux.git script: add noreturn function attributes Signed-off-by: Sami Kerola --- diff --git a/term-utils/script.c b/term-utils/script.c index 52c15f2e00..00285f2609 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -189,7 +189,7 @@ static void __attribute__((__noreturn__)) done(struct script_control *ctl) exit(EXIT_SUCCESS); } -static void fail(struct script_control *ctl) +static void __attribute__((__noreturn__)) fail(struct script_control *ctl) { kill(0, SIGTERM); done(ctl); @@ -358,7 +358,7 @@ static void getslave(struct script_control *ctl) ioctl(ctl->slave, TIOCSCTTY, 0); } -static void doshell(struct script_control *ctl) +static void __attribute__((__noreturn__)) doshell(struct script_control *ctl) { char *shname;