Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/networking/slattach.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/networking/slattach.c
r3232 r3621 28 28 29 29 #include "libbb.h" 30 #include "libiproute/utils.h" /* invarg() */ 30 #include "common_bufsiz.h" 31 #include "libiproute/utils.h" /* invarg_1_to_2() */ 31 32 32 33 struct globals { … … 35 36 struct termios saved_state; 36 37 } FIX_ALIASING; 37 #define G (*(struct globals*) &bb_common_bufsiz1)38 #define G (*(struct globals*)bb_common_bufsiz1) 38 39 #define handle (G.handle ) 39 40 #define saved_disc (G.saved_disc ) 40 41 #define saved_state (G.saved_state ) 41 #define INIT_G() do { } while (0)42 #define INIT_G() do { setup_common_bufsiz(); } while (0) 42 43 43 44 … … 176 177 177 178 if (encap < 0) 178 invarg (proto, "protocol");179 invarg_1_to_2(proto, "protocol"); 179 180 if (encap > 3) 180 181 encap = 8; … … 184 185 baud_code = tty_value_to_baud(xatoi(baud_str)); 185 186 if (baud_code < 0) 186 invarg (baud_str, "baud rate");187 invarg_1_to_2(baud_str, "baud rate"); 187 188 } 188 189
Note:
See TracChangeset
for help on using the changeset viewer.