aboutsummaryrefslogtreecommitdiff
path: root/networking/slattach.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/slattach.c')
-rw-r--r--networking/slattach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/slattach.c b/networking/slattach.c
index 02ecb5e9f..52f7f3cff 100644
--- a/networking/slattach.c
+++ b/networking/slattach.c
@@ -64,7 +64,7 @@ static int set_termios_state_or_warn(struct termios *state)
64 * Go on after errors: we want to restore as many controlled ttys 64 * Go on after errors: we want to restore as many controlled ttys
65 * as possible. 65 * as possible.
66 */ 66 */
67static void restore_state_and_exit(int exitcode) ATTRIBUTE_NORETURN; 67static void restore_state_and_exit(int exitcode) NORETURN;
68static void restore_state_and_exit(int exitcode) 68static void restore_state_and_exit(int exitcode)
69{ 69{
70 struct termios state; 70 struct termios state;
@@ -114,13 +114,13 @@ static void set_state(struct termios *state, int encap)
114 } 114 }
115} 115}
116 116
117static void sig_handler(int signo ATTRIBUTE_UNUSED) 117static void sig_handler(int signo UNUSED_PARAM)
118{ 118{
119 restore_state_and_exit(EXIT_SUCCESS); 119 restore_state_and_exit(EXIT_SUCCESS);
120} 120}
121 121
122int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 122int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
123int slattach_main(int argc ATTRIBUTE_UNUSED, char **argv) 123int slattach_main(int argc UNUSED_PARAM, char **argv)
124{ 124{
125 /* Line discipline code table */ 125 /* Line discipline code table */
126 static const char proto_names[] ALIGN1 = 126 static const char proto_names[] ALIGN1 =