X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fis_closing.c;h=ac3477a9d01b88d15a380578dffa9c4a3ea70ed0;hp=32e66aa78018407e52ef80ddcb1f3e754a3b6e53;hb=fa15a3f1ecd64efd8440e46d398fd9976abc3d25;hpb=655820f73a10748f15e3b578df98e41abdae3515 diff --git a/sources/is_closing.c b/sources/is_closing.c index 32e66aa..ac3477a 100644 --- a/sources/is_closing.c +++ b/sources/is_closing.c @@ -27,17 +27,14 @@ * Author: Simone Piccardi * Sep. 2006 * - * $Id$ - * ****************************************************************/ -#include -#include -#include -#include /* error code */ +#include /* socket constants, types and functions */ +#include /* IPv4 and IPv6 constants and types */ +#include /* TCP constants and types */ +#include /* error definitions and routines */ # int is_closing(int sock) { - int err; struct tcp_info info; socklen_t len = sizeof(info); if (getsockopt(sock, SOL_TCP, TCP_INFO, &info, &len) != -1) {