]> Kevux Git Server - rit/commitdiff
Drop system includes from inet_pton/inet_ntop compatibility wrappers
authorBen Walton <bwalton@artsci.utoronto.ca>
Sun, 5 Feb 2012 22:32:21 +0000 (17:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2012 00:32:33 +0000 (16:32 -0800)
As both of these compatibility wrappers include git-compat-utils.h,
all of the system includes were redundant.

Dropping these system includes also makes git-compat-utils.h the first
include which avoids a compiler warning on Solaris due to the
redefinition of _FILE_OFFSET_BITS.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/inet_ntop.c
compat/inet_pton.c

index 60b5a1d..90b7cc4 100644 (file)
  * SOFTWARE.
  */
 
-#include <errno.h>
-#include <sys/types.h>
-
 #include "../git-compat-util.h"
 
-#include <stdio.h>
-#include <string.h>
-
 #ifndef NS_INADDRSZ
 #define NS_INADDRSZ    4
 #endif
index 2ec995e..2b9a0a4 100644 (file)
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include <errno.h>
-#include <sys/types.h>
-
 #include "../git-compat-util.h"
 
-#include <stdio.h>
-#include <string.h>
-
 #ifndef NS_INT16SZ
 #define NS_INT16SZ       2
 #endif