From faedb66c2ac4700ce5f9a41f72e37d63e8166020 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Fri, 25 May 2007 21:28:49 +0000 Subject: [PATCH] The printf %b list in PRINT_TH_FLAGS has to be in octal numbering. Thus convert \8 to \10 and the warnings go away. Pointed out by: sam, ru, thompsa --- sys/netinet/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index adc90aa82ab..ee4fd1c2fe3 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -69,7 +69,7 @@ struct tcphdr { #define TH_ECE 0x40 #define TH_CWR 0x80 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR) -#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\8CWR" +#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\10CWR" u_short th_win; /* window */ u_short th_sum; /* checksum */