diff options
| author | Greg Hudson <ghudson@mit.edu> | 2014-07-05 11:50:58 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2014-07-08 19:19:24 -0400 |
| commit | 02a1123cf44381690c28f18ab2c4ba8036200539 (patch) | |
| tree | 821ad7e29d2f90227b6f12dc63aaae948baa2447 /src/appl/simple/client/sim_client.c | |
| parent | 6a8da91b691b8f51ac62d8142cd2fa32a69f3d15 (diff) | |
| download | krb5-02a1123cf44381690c28f18ab2c4ba8036200539.tar.gz krb5-02a1123cf44381690c28f18ab2c4ba8036200539.tar.xz krb5-02a1123cf44381690c28f18ab2c4ba8036200539.zip | |
Include autoconf.h before system headers
Include autoconf.h (either directly or via proxy) before system
headers, so that feature test macros defined there can affect the
system namespace. Where include order was changed, eliminate some
redundant or unnecessary includes.
ticket: 7961
Diffstat (limited to 'src/appl/simple/client/sim_client.c')
| -rw-r--r-- | src/appl/simple/client/sim_client.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index 835d85f88..aaa6446c6 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -29,25 +29,20 @@ * This program performs no useful function. */ +#include <k5-int.h> +#include "com_err.h" + #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> -#include <stdio.h> -#include <string.h> #include <ctype.h> -#include <errno.h> - -#include <k5-int.h> -#include "com_err.h" - -#include "simple.h" - -#include <stdlib.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#include "simple.h" + /* for old Unixes and friends ... */ #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 |
