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>
Ben Walton committed
Feb 5, 2012 at 17:32 UTC
cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1
2 files changed
-12
compat/inet_ntop.c
-6
@@ -15,14 +15,8 @@
15
* SOFTWARE.
16
*/
17
18
-#include <errno.h>
19
-#include <sys/types.h>
20
-
18
#include "../git-compat-util.h"
19
23
-#include <stdio.h>
24
-#include <string.h>
25
-
20
#ifndef NS_INADDRSZ
21
#define NS_INADDRSZ 4
22
#endif
compat/inet_pton.c
-6
@@ -15,14 +15,8 @@
15
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
*/
17
18
-#include <errno.h>
19
-#include <sys/types.h>
20
-
18
#include "../git-compat-util.h"
19
23
-#include <stdio.h>
24
-#include <string.h>
25
-
20
#ifndef NS_INT16SZ
21
#define NS_INT16SZ 2
22
#endif