Index: trunk/ntripserver/NtripLinuxServer.c
===================================================================
--- trunk/ntripserver/NtripLinuxServer.c	(revision 24)
+++ trunk/ntripserver/NtripLinuxServer.c	(revision 30)
@@ -41,5 +41,5 @@
  */
 
-/* $Id: NtripLinuxServer.c,v 1.12 2005/06/02 09:33:11 stoecker Exp $
+/* $Id: NtripLinuxServer.c,v 1.13 2005/06/07 14:47:52 stoecker Exp $
  * Changes - Version 0.7
  * Sep 22 2003  Steffen Tschirpke <St.Tschirpke@actina.de>
@@ -127,5 +127,10 @@
 static void usage(int);
 
-static void sighandler_alarm(/*int arg*/)
+#ifdef __GNUC__
+static __attribute__ ((noreturn)) void sighandler_alarm(
+int sig __attribute__((__unused__)))
+#else /* __GNUC__ */
+static void sighandler_alarm(int sig)
+#endif /* __GNUC__ */
 {
   fprintf(stderr, "ERROR: more than %d seconds no activity\n", ALARMTIME);
@@ -513,5 +518,5 @@
   char buffer[BUFSZ] = { 0 };
   char sisnetbackbuffer[200];
-  int nBufferBytes = 0, i;
+  int nBufferBytes = 0;
   /* data transmission */
   printf("transfering data ...\n");
@@ -557,4 +562,5 @@
     if(nBufferBytes)
     {
+      int i;
       /* send data */
       if((i = send(sock, buffer, (size_t)nBufferBytes, MSG_DONTWAIT))
@@ -717,5 +723,9 @@
  */
 
-static void usage(int rc)
+static
+#ifdef __GNUC__
+__attribute__ ((noreturn))
+#endif /* __GNUC__ */
+void usage(int rc)
 {
   fprintf(stderr, "Usage: %s [OPTIONS]\n", VERSION);
