Re: Socket header file

Alan Modra (alan@spri.levels.unisa.edu.au)
Thu, 19 Dec 1996 15:28:53 +1030 (CST)


>root@analogic.com (Richard B. Johnson)
> /usr/include/linux/socket.h: unsigned char cmsg_data[0];
> This should probably be:
> unsigned char *cmsg_data;

No, definitely not. It's correct as it is. The structure is
dynamically allocated with cmsg_data[] a variable length array.