summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-12-27 13:53:24 -0800
committerGary E. Miller <gem@rellim.com>2018-12-27 13:53:24 -0800
commit6eccc19ec2e141017111c5c25da63dc5083af106 (patch)
tree15efd237dbfbd5b6005686c15cdad411cb8fee51 /gpsd.c
parent05980e8a0ea9f741f183a7153e1e7ce6349c1960 (diff)
downloadgpsd-6eccc19ec2e141017111c5c25da63dc5083af106.tar.gz
gpsd.c: sort system includes.
Yeah, an OCD thing to do.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c45
1 files changed, 23 insertions, 22 deletions
diff --git a/gpsd.c b/gpsd.c
index fb148bef..19f348ee 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -21,43 +21,44 @@
/* strlcpy() needs _DARWIN_C_SOURCE */
#define _DARWIN_C_SOURCE
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <stdint.h> /* for uint32_t, etc. */
-#include <time.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <stdarg.h>
-#include <setjmp.h>
+#include <arpa/inet.h> /* for htons() and friends */
#include <assert.h>
-#include <math.h>
-#include <syslog.h>
-#include <errno.h>
-#include <signal.h>
#include <ctype.h>
-#include <pwd.h>
-#include <grp.h>
+#include <errno.h>
#include <fcntl.h>
-#include <pthread.h>
+#include <grp.h>
+#include <math.h>
#include <netdb.h>
+#include <pthread.h>
+#include <pwd.h>
+#include <setjmp.h>
+#include <signal.h>
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stdint.h> /* for uint32_t, etc. */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/un.h>
+#include <syslog.h>
+#include <time.h>
+#include <unistd.h>
+
#ifndef AF_UNSPEC
#include <sys/socket.h>
#endif /* AF_UNSPEC */
#ifndef INADDR_ANY
#include <netinet/in.h>
#endif /* INADDR_ANY */
-#include <sys/un.h>
-#include <arpa/inet.h> /* for htons() and friends */
-#include <unistd.h>
#include "gpsd_config.h"
#include "gpsd.h"
-#include "sockaddr.h"
-#include "gps_json.h"
+#include "gps_json.h" /* needs gpsd.h */
#include "revision.h"
+#include "sockaddr.h"
#include "strfuncs.h"
#if defined(SYSTEMD_ENABLE)