[PATCH 12/12] script: add noreturn function attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 term-utils/script.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/term-utils/script.c b/term-utils/script.c
index 54e10b4..e15ea38 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -172,7 +172,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);
@@ -336,7 +336,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;
 
-- 
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux