Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/networking/slattach.c

    r3232 r3621  
    2828
    2929#include "libbb.h"
    30 #include "libiproute/utils.h" /* invarg() */
     30#include "common_bufsiz.h"
     31#include "libiproute/utils.h" /* invarg_1_to_2() */
    3132
    3233struct globals {
     
    3536    struct termios saved_state;
    3637} FIX_ALIASING;
    37 #define G (*(struct globals*)&bb_common_bufsiz1)
     38#define G (*(struct globals*)bb_common_bufsiz1)
    3839#define handle       (G.handle      )
    3940#define saved_disc   (G.saved_disc  )
    4041#define saved_state  (G.saved_state )
    41 #define INIT_G() do { } while (0)
     42#define INIT_G() do { setup_common_bufsiz(); } while (0)
    4243
    4344
     
    176177
    177178    if (encap < 0)
    178         invarg(proto, "protocol");
     179        invarg_1_to_2(proto, "protocol");
    179180    if (encap > 3)
    180181        encap = 8;
     
    184185        baud_code = tty_value_to_baud(xatoi(baud_str));
    185186        if (baud_code < 0)
    186             invarg(baud_str, "baud rate");
     187            invarg_1_to_2(baud_str, "baud rate");
    187188    }
    188189
Note: See TracChangeset for help on using the changeset viewer.