Skip to content

Commit

Permalink
fix warnings (cosmetics)
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Beaufour committed Sep 27, 2012
1 parent d945b0c commit 88d10f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tcpkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ tcp_kill_cb(u_char *user, const struct pcap_pkthdr *pcap, const u_char *pkt)
{
struct libnet_ipv4_hdr *ip;
struct libnet_tcp_hdr *tcp;
u_char ctext[64];
char ctext[64];
u_int32_t seq, win;
int i, len;
libnet_t *l;
Expand Down Expand Up @@ -82,7 +82,10 @@ tcp_kill_cb(u_char *user, const struct pcap_pkthdr *pcap, const u_char *pkt)
if (libnet_write(l) < 0)
warn("write");

fprintf(stderr, "%s R %lu:%lu(0) win 0\n", ctext, seq, seq);
fprintf(stderr, "%s R %lu:%lu(0) win 0\n",
ctext,
(unsigned long) seq,
(unsigned long) seq);
}
}

Expand Down

0 comments on commit 88d10f9

Please sign in to comment.