summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-10-26 21:40:43 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-10-26 21:40:43 +0000
commit5794bb4cc9b92789c326bc64f321d41bca6f94bc (patch)
treeb5cda5d501fb1f49fd31f54d77df17e5a332c98e
parenta1fa10805441d7e49d21853a4e9aa64ec1257930 (diff)
downloadgpsd-5794bb4cc9b92789c326bc64f321d41bca6f94bc.tar.gz
Hush more compiler warnings
-rw-r--r--cgps.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cgps.c b/cgps.c
index 67e1b1a1..d2115aab 100644
--- a/cgps.c
+++ b/cgps.c
@@ -22,6 +22,9 @@
Kind of a curses version of xgps for use with gpsd.
*/
+#include <sys/types.h>
+#include <sys/select.h>
+#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -29,8 +32,6 @@
#include <unistd.h>
#include <math.h>
#include <errno.h>
-#include <sys/select.h>
-#include <sys/socket.h>
#include <ncurses.h>
#include <signal.h>
@@ -88,7 +89,7 @@ static enum deg_str_type deg_type = deg_dd;
/* This gets called once for each new sentence. */
static void update_panel(struct gps_data_t *gpsdata,
char *message,
- size_t len,
+ size_t len UNUSED ,
int level UNUSED)
{
int i;