summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-17 10:04:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-17 10:04:37 -0400
commit978b7afe869dee677cc37538db1eec0d2fe94fe0 (patch)
treee6a1f59efc2af4a4d1559764fcd28d8087f81109 /lcdgps.c
parenta34118b0a18820dc7d034dd04a0108c77ec12326 (diff)
downloadgpsd-978b7afe869dee677cc37538db1eec0d2fe94fe0.tar.gz
splint/cppcheck cleanup.
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lcdgps.c b/lcdgps.c
index df560559..3c3eee6a 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -33,28 +33,26 @@
#define CLIMB 3
-#include <sys/types.h>
-#include <sys/stat.h>
#ifndef S_SPLINT_S
#include <netdb.h>
#ifndef AF_UNSPEC
+#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/socket.h>
#endif /* AF_UNSPEC */
#endif /* S_SPLINT_S */
#ifndef INADDR_ANY
#include <netinet/in.h>
#endif /* INADDR_ANY */
+#ifndef S_SPLINT_S
+#include <arpa/inet.h>
+#include <unistd.h>
+#endif /* S_SPLINT_S */
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <stdio.h>
-#ifndef S_SPLINT_S
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-#include <unistd.h>
-#endif /* S_SPLINT_S */
#include "gps.h"
#include "gpsdclient.h"