ctdb-common: Fix a warning in the pcap code
commit8b54587b1aed28aa2f3af7161a077aa9dd83894c
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2022 01:31:03 +0000 (8 11:31 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 20 Sep 2022 10:43:37 +0000 (20 10:43 +0000)
tree390469e470ebbfbb963c08d17b5bee60c10e49bc
parentad445abebdea55f71b0c79eb31c0e6b0aee06763
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>
ctdb/common/system_socket.c