Skip to content

Commit 6a5c06e

Browse files
author
git-core
committed
Remove <endian.h>
<endian.h> defines htobe32 and like, not htonl we're using. Strictly speaking, we have to to include <arpa/inet.h>. su isn't aimed to be so portable though.
1 parent fb7c8d1 commit 6a5c06e

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

su.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <unistd.h>
2525
#include <limits.h>
2626
#include <fcntl.h>
27-
#include <endian.h>
2827
#include <stdio.h>
2928
#include <stdlib.h>
3029
#include <getopt.h>

utils.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
#include <limits.h>
2121
#include <fcntl.h>
2222
#include <errno.h>
23-
#include <endian.h>
2423
#include <ctype.h>
25-
2624
#include <stdio.h>
2725
#include <stdlib.h>
2826
#include <string.h>

0 commit comments

Comments
 (0)