summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorSami Kerola2012-07-25 21:15:39 +0200
committerKarel Zak2012-07-26 13:51:33 +0200
commit5da054e0709321fa7870bd7e7576d149e7f7c717 (patch)
treea4385790dff12f4a7c59b3c828ad22414938e9d5 /term-utils
parentvipw: add noreturn function attribute (diff)
downloadkernel-qcow2-util-linux-5da054e0709321fa7870bd7e7576d149e7f7c717.tar.gz
kernel-qcow2-util-linux-5da054e0709321fa7870bd7e7576d149e7f7c717.tar.xz
kernel-qcow2-util-linux-5da054e0709321fa7870bd7e7576d149e7f7c717.zip
script: add noreturn function attributes
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/script.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/term-utils/script.c b/term-utils/script.c
index 8d7ab65f0..ccd88738a 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -289,7 +289,7 @@ main(int argc, char **argv) {
return EXIT_SUCCESS;
}
-void
+void __attribute__((__noreturn__))
doinput(void) {
ssize_t cc;
char ibuf[BUFSIZ];
@@ -345,7 +345,7 @@ my_strftime(char *buf, size_t len, const char *fmt, const struct tm *tm) {
strftime(buf, len, fmt, tm);
}
-void
+void __attribute__((__noreturn__))
dooutput(FILE *timingfd) {
ssize_t cc;
time_t tvec;
@@ -412,7 +412,7 @@ dooutput(FILE *timingfd) {
done();
}
-void
+void __attribute__((__noreturn__))
doshell(void) {
char *shname;
@@ -462,14 +462,14 @@ fixtty(void) {
tcsetattr(STDIN_FILENO, TCSANOW, &rtt);
}
-void
+void __attribute__((__noreturn__))
fail(void) {
kill(0, SIGTERM);
done();
}
-void
+void __attribute__((__noreturn__))
done(void) {
time_t tvec;