[PATCH] Use void* for data in llist_t instead of char*
Rob Landley
rob at landley.net
Mon May 29 04:22:00 UTC 2006
On Friday 19 May 2006 4:48 pm, Yann E. MORIN wrote:
> Robert,
> All,
>
> On Friday 19 May 2006 164, Robert P. J. Day wrote:
> > the proper fix would be for llist
> > to use *only* "void*" pointers, and have all of the calling routines
> > be forced to do the proper casting.
>
> Please find attached the diff to transfrom the char* data into a void*
> data, and the associated corrections.
I made a related change a few days ago, which was a follow-up to adding pop
rather than having seen this thread.
How much of this patch is still needed? I left the data type in the list as
char *, but made all the functions use void. So anybody actually
dereferencing data without typecasting it gets a char *. Nothing broke that
I'm aware of...
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list