freebsd-skq/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_init.c
ngie 3f09b8d0af Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

28 lines
668 B
C

/* cast initialization */
typedef unsigned char u_char;
typedef unsigned int size_t;
struct sockaddr_x25 {
u_char x25_len;
u_char x25_family;
short x25_net;
char x25_addr[16];
struct x25opts {
char op_flags;
char op_psize;
char op_wsize;
char op_speed;
} x25_opts;
short x25_udlen;
char x25_udata[16];
};
struct sockaddr_x25 x25_dgmask = {
(unsigned char)(unsigned char)(unsigned int)(unsigned long)(&((( struct sockaddr_x25 *)0)->x25_udata[1])) ,
0,
0,
{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},
{0, 0, 0, 0},
-1,
{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},
};