summaryrefslogtreecommitdiff
path: root/compat/inet_ntop.c
diff options
context:
space:
mode:
authorBen Walton <bwalton@artsci.utoronto.ca>2012-02-05 22:32:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-02-06 00:32:33 (GMT)
commitcd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1 (patch)
treef2b406c6e4715331edf8bcb28dca6d56e5676109 /compat/inet_ntop.c
parent406da7803217998ff6bf5dc69c55b1613556c2f4 (diff)
downloadgit-cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1.zip
git-cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1.tar.gz
git-cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1.tar.bz2
Drop system includes from inet_pton/inet_ntop compatibility wrappers
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>
Diffstat (limited to 'compat/inet_ntop.c')
-rw-r--r--compat/inet_ntop.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/compat/inet_ntop.c b/compat/inet_ntop.c
index 60b5a1d..90b7cc4 100644
--- a/compat/inet_ntop.c
+++ b/compat/inet_ntop.c
@@ -15,14 +15,8 @@
* 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