ctdb-common: Fix a warning in the pcap code
commit98ee0c125781081bb98cdb78ed3a9df8478ee243
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2022 01:31:03 +0000 (8 11:31 +1000)
committerJule Anger <janger@samba.org>
Tue, 29 Aug 2023 09:35:11 +0000 (29 09:35 +0000)
tree1573b36ac4b982cbf17eaed7b03f71ff7a7bb256
parent197f86f9a1c3d7e5e6e4ed6df75288f9847ee3d8
ctdb-common: Fix a warning in the pcap code

[173/416] Compiling ctdb/common/system_socket.c
../../common/system_socket.c: In function ‘ctdb_sys_read_tcp_packet’:
../../common/system_socket.c:1016:15: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
 1016 |         eth = (struct ether_header *)buffer;
      |               ^

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 8b54587b1aed28aa2f3af7161a077aa9dd83894c)
ctdb/common/system_socket.c