« Previous | Next » 

Revision 89d2d3af

ID89d2d3af518879ddfca367e56627229a09e90352

Added by Stefan Weil about 10 years ago

slirp: Remove some type casts caused by bad declaration of x.tp_buf

x.tp_buf was declared as a uint8_t array, but always used as
a char array (which needed a lot of type casts).

The patch includes these changes:

  • Fix declaration of x.tp_buf and remove all type casts.
  • Use offsetof() to get the offset of x.tp_buf.

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences