siit: fix compilation warning
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 13 May 2023 20:49:50 +0000 (22:49 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 13 May 2023 20:51:29 +0000 (22:51 +0200)
commit24beb46bbef9acfd04993228d80caed1568e9142
tree9d2660ca4655da65d2ffcca9fd79254b577b135f
parent391f0979475f0c7485f7ea3d09ca62c6f7287145
siit: fix compilation warning

Fix compilation warning for stack limit and variable length array.
Fix compilation warning:
  CC [M]  /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/siit-1.2/siit.o
../siit-1.2/siit.c: In function 'ip4_fragment':
../siit-1.2/siit.c:988:9: error: ISO C90 forbids variable length array 'buff' [-Werror=vla]
  988 |         char buff[FRAG_BUFF_SIZE+hdr_len]; /* buffer to form new fragment packet */
      |         ^~~~
../siit-1.2/siit.c: In function 'siit_xmit':
../siit-1.2/siit.c:1359:1: error: the frame size of 2144 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
 1359 | }
      | ^
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
net/siit/src/siit.c