Skip to content

Commit cd4c4e2

Browse files
Ben Waltongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 406da78 commit cd4c4e2

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

compat/inet_ntop.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@
1515
* SOFTWARE.
1616
*/
1717

18-
#include <errno.h>
19-
#include <sys/types.h>
20-
2118
#include "../git-compat-util.h"
2219

23-
#include <stdio.h>
24-
#include <string.h>
25-
2620
#ifndef NS_INADDRSZ
2721
#define NS_INADDRSZ 4
2822
#endif

compat/inet_pton.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@
1515
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
*/
1717

18-
#include <errno.h>
19-
#include <sys/types.h>
20-
2118
#include "../git-compat-util.h"
2219

23-
#include <stdio.h>
24-
#include <string.h>
25-
2620
#ifndef NS_INT16SZ
2721
#define NS_INT16SZ 2
2822
#endif

0 commit comments

Comments
 (0)