unsigned currentx, currenty, currentn;
int read_state;
- unsigned long offsets[];
+ unsigned long offsets[FLEXIBLE_ARRAY_MEMBER];
};
-static struct lbx_image_priv *lbx_img_init(unsigned char hdr[static HDR_LEN])
+static struct lbx_image_priv *lbx_img_init(unsigned char *hdr)
{
unsigned short nframes = unpack_16_le(hdr+6);
struct lbx_image_priv *img;