diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-09-17 10:04:37 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-09-17 10:04:37 -0400 |
commit | 978b7afe869dee677cc37538db1eec0d2fe94fe0 (patch) | |
tree | e6a1f59efc2af4a4d1559764fcd28d8087f81109 /lcdgps.c | |
parent | a34118b0a18820dc7d034dd04a0108c77ec12326 (diff) | |
download | gpsd-978b7afe869dee677cc37538db1eec0d2fe94fe0.tar.gz |
splint/cppcheck cleanup.
Diffstat (limited to 'lcdgps.c')
-rw-r--r-- | lcdgps.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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" |