Changeset 30 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
Apr 20, 2006, 10:37:23 AM (14 years ago)
Author:
stoecker
Message:

fixed warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/NtripLinuxServer.c

    r24 r30  
    4141 */
    4242
    43 /* $Id: NtripLinuxServer.c,v 1.12 2005/06/02 09:33:11 stoecker Exp $
     43/* $Id: NtripLinuxServer.c,v 1.13 2005/06/07 14:47:52 stoecker Exp $
    4444 * Changes - Version 0.7
    4545 * Sep 22 2003  Steffen Tschirpke <St.Tschirpke@actina.de>
     
    127127static void usage(int);
    128128
    129 static void sighandler_alarm(/*int arg*/)
     129#ifdef __GNUC__
     130static __attribute__ ((noreturn)) void sighandler_alarm(
     131int sig __attribute__((__unused__)))
     132#else /* __GNUC__ */
     133static void sighandler_alarm(int sig)
     134#endif /* __GNUC__ */
    130135{
    131136  fprintf(stderr, "ERROR: more than %d seconds no activity\n", ALARMTIME);
     
    513518  char buffer[BUFSZ] = { 0 };
    514519  char sisnetbackbuffer[200];
    515   int nBufferBytes = 0, i;
     520  int nBufferBytes = 0;
    516521  /* data transmission */
    517522  printf("transfering data ...\n");
     
    557562    if(nBufferBytes)
    558563    {
     564      int i;
    559565      /* send data */
    560566      if((i = send(sock, buffer, (size_t)nBufferBytes, MSG_DONTWAIT))
     
    717723 */
    718724
    719 static void usage(int rc)
     725static
     726#ifdef __GNUC__
     727__attribute__ ((noreturn))
     728#endif /* __GNUC__ */
     729void usage(int rc)
    720730{
    721731  fprintf(stderr, "Usage: %s [OPTIONS]\n", VERSION);
Note: See TracChangeset for help on using the changeset viewer.