diff options
author | Sami Kerola | 2014-12-31 00:22:33 +0100 |
---|---|---|
committer | Sami Kerola | 2015-06-08 22:53:37 +0200 |
commit | 2ddadb5eda64d6c2ba3ca7c7260ff89de9e1bc27 (patch) | |
tree | e97b3c6292c1498e7855c9b4f36171e31dffa759 /term-utils/script.c | |
parent | script: use gettime_monotonic() to get timing file timestamps (diff) | |
download | kernel-qcow2-util-linux-2ddadb5eda64d6c2ba3ca7c7260ff89de9e1bc27.tar.gz kernel-qcow2-util-linux-2ddadb5eda64d6c2ba3ca7c7260ff89de9e1bc27.tar.xz kernel-qcow2-util-linux-2ddadb5eda64d6c2ba3ca7c7260ff89de9e1bc27.zip |
script: add noreturn function attributes
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/script.c')
-rw-r--r-- | term-utils/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index 52c15f2e0..00285f260 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; |