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 a500da6d0..14e0c1941 100644
--- a/networking/slattach.c
+++ b/networking/slattach.c
@@ -27,7 +27,7 @@
27//usage: "\n -F Disable RTS/CTS flow control" 27//usage: "\n -F Disable RTS/CTS flow control"
28 28
29#include "libbb.h" 29#include "libbb.h"
30#include "libiproute/utils.h" /* invarg() */ 30#include "libiproute/utils.h" /* invarg_1_to_2() */
31 31
32struct globals { 32struct globals {
33 int handle; 33 int handle;
@@ -175,7 +175,7 @@ int slattach_main(int argc UNUSED_PARAM, char **argv)
175 encap = index_in_strings(proto_names, proto); 175 encap = index_in_strings(proto_names, proto);
176 176
177 if (encap < 0) 177 if (encap < 0)
178 invarg(proto, "protocol"); 178 invarg_1_to_2(proto, "protocol");
179 if (encap > 3) 179 if (encap > 3)
180 encap = 8; 180 encap = 8;
181 181
@@ -183,7 +183,7 @@ int slattach_main(int argc UNUSED_PARAM, char **argv)
183 if (opt & OPT_s_baud) { 183 if (opt & OPT_s_baud) {
184 baud_code = tty_value_to_baud(xatoi(baud_str)); 184 baud_code = tty_value_to_baud(xatoi(baud_str));
185 if (baud_code < 0) 185 if (baud_code < 0)
186 invarg(baud_str, "baud rate"); 186 invarg_1_to_2(baud_str, "baud rate");
187 } 187 }
188 188
189 /* Trap signals in order to restore tty states upon exit */ 189 /* Trap signals in order to restore tty states upon exit */