diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-05-27 18:07:34 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-05-27 18:07:34 +0200 |
commit | ed456a32ffe6fea0cb52b5184a00a14cb0059f4a (patch) | |
tree | 8970d63b89090e8eb778d97043af9b74999828ae /src/pkt.c | |
parent | a0fca977bf366b64a5cd3e1c71fce14a93b8a44c (diff) |
splitted bigfat anon enum in pconfig.h into multiple smaller ones hoping to improve readability
* clang-format headers
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/pkt.c')
-rw-r--r-- | src/pkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -219,7 +219,7 @@ void handle_packet(char * buf, unsigned bytes, int is_pcap, struct sockaddr_in * icmp_echo_packet_t * pkt; ping_tunnel_pkt_t * pt_pkt; proxy_desc_t * cur; - uint32_t type_flag, pkt_flag, proxy_flag; + enum pkt_flag type_flag, pkt_flag, proxy_flag; challenge_t * challenge; proxy_flag = kProxy_flag; @@ -261,7 +261,7 @@ void handle_packet(char * buf, unsigned bytes, int is_pcap, struct sockaddr_in * */ if (cur) { type_flag = cur->type_flag; - if (type_flag == (uint32_t)kProxy_flag) { + if (type_flag == kProxy_flag) { cur->icmp_id = pkt->identifier; cur->ping_seq = pkt->seq; } |