summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-04 18:33:01 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-04 18:33:01 +0000
commit466e153e221dc4cec7f33595a3b0d51b5d4f41ea (patch)
treeab364f89c0d25a5d7c3c2fbefc97b00ec76c9db9
parentd9797081b48084c906076ef879de8d0acfde63c0 (diff)
downloadgpsd-466e153e221dc4cec7f33595a3b0d51b5d4f41ea.tar.gz
Quiet down the compiler.
-rw-r--r--gpsd.c2
-rw-r--r--packet.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 902ce2cb..6047de9b 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -567,7 +567,7 @@ static bool allocation_filter(struct gps_device_t *channel,
/* does specified channel match the user's type criteria? */
{
gpsd_report(LOG_PROG,
- "User requires %d, channel %d type is %d\n",
+ "User requires %d, channel %ld type is %d\n",
user->requires, channel - channels, channel->packet.type);
/* we might have type constraints */
if (user->requires == ANY)
diff --git a/packet.c b/packet.c
index 16e4e9f2..121c669f 100644
--- a/packet.c
+++ b/packet.c
@@ -30,6 +30,9 @@ others apart and distinguish them from baud barf.
#include <unistd.h>
#include <string.h>
#include <errno.h>
+#include <netinet/in.h> /* for htons() */
+#include <arpa/inet.h> /* for htons() */
+
#include "gpsd_config.h"
#include "bits.h"
#include "gpsd.h"