@@ -1673,6 +1673,10 @@ ipv6_send_icmp_unreachable(struct context *c, struct buffer *buf, bool client)
16731673#undef MAX_ICMPV6LEN
16741674}
16751675
1676+ #if defined(__GNUC__ ) || defined(__clang__ )
1677+ #pragma GCC diagnostic pop
1678+ #endif
1679+
16761680void
16771681process_ip_header (struct context * c , unsigned int flags , struct buffer * buf ,
16781682 struct link_socket * sock )
@@ -1915,7 +1919,7 @@ process_outgoing_tun(struct context *c, struct link_socket *in_sock)
19151919 /*
19161920 * Write to TUN/TAP device.
19171921 */
1918- int size ;
1922+ ssize_t size ;
19191923
19201924#ifdef LOG_RW
19211925 if (c -> c2 .log_rw )
@@ -1956,7 +1960,7 @@ process_outgoing_tun(struct context *c, struct link_socket *in_sock)
19561960 if (size != BLEN (& c -> c2 .to_tun ))
19571961 {
19581962 msg (D_LINK_ERRORS ,
1959- "TUN/TAP packet was destructively fragmented on write to %s (tried=%d,actual=%d )" ,
1963+ "TUN/TAP packet was destructively fragmented on write to %s (tried=%d,actual=%zd )" ,
19601964 c -> c1 .tuntap -> actual_name , BLEN (& c -> c2 .to_tun ), size );
19611965 }
19621966
@@ -1977,10 +1981,6 @@ process_outgoing_tun(struct context *c, struct link_socket *in_sock)
19771981 buf_reset (& c -> c2 .to_tun );
19781982}
19791983
1980- #if defined(__GNUC__ ) || defined(__clang__ )
1981- #pragma GCC diagnostic pop
1982- #endif
1983-
19841984void
19851985pre_select (struct context * c )
19861986{
0 commit comments