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/ftpgetput.c

    r3232 r3621  
    5151
    5252#include "libbb.h"
     53#include "common_bufsiz.h"
    5354
    5455struct globals {
     
    6162    char buf[4]; /* actually [BUFSZ] */
    6263} FIX_ALIASING;
    63 #define G (*(struct globals*)&bb_common_bufsiz1)
     64#define G (*(struct globals*)bb_common_bufsiz1)
    6465enum { BUFSZ = COMMON_BUFSIZE - offsetof(struct globals, buf) };
    65 struct BUG_G_too_big {
    66     char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
    67 };
    6866#define user           (G.user          )
    6967#define password       (G.password      )
     
    7371#define do_continue    (G.do_continue   )
    7472#define buf            (G.buf           )
    75 #define INIT_G() do { } while (0)
     73#define INIT_G() do { \
     74    setup_common_bufsiz(); \
     75    BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \
     76} while (0)
    7677
    7778
Note: See TracChangeset for help on using the changeset viewer.