xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_init.c (revision 9268022b74279434ed6300244e3f977e56a8ceb5)
1 /* cast initialization */
2 typedef unsigned char u_char;
3 typedef unsigned int size_t;
4 struct	sockaddr_x25 {
5 	u_char	x25_len;
6 	u_char	x25_family;
7 	short	x25_net;
8 	char	x25_addr[16];
9 	struct	x25opts {
10 		char	op_flags;
11 		char	op_psize;
12 		char	op_wsize;
13 		char	op_speed;
14 	} x25_opts;
15 	short	x25_udlen;
16 	char	x25_udata[16];
17 };
18 
19 struct sockaddr_x25 x25_dgmask = {
20 	(unsigned char)(unsigned char)(unsigned int)(unsigned long)(&((( struct sockaddr_x25  *)0)->x25_udata[1])) ,
21 	0,
22 	0,
23 	{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},
24 	{0, 0, 0, 0},
25 	-1,
26 	{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},
27 };
28