Changeset 30 in ntrip


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

fixed warnings

Location:
trunk
Files:
2 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);
  • trunk/rtcm3torinex/rtcm3torinex.c

    r29 r30  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.1 2006/01/12 16:19:10 stoecker Exp $
     3  $Id: rtcm3torinex.c,v 1.2 2006/01/13 08:25:10 stoecker Exp $
    44  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronav.de>
    55
     
    4242
    4343/* CVS revision and version */
    44 static char revisionstr[] = "$Revision: 1.1 $";
    45 static char datestr[]     = "$Date: 2006/01/12 16:19:10 $";
     44static char revisionstr[] = "$Revision: 1.2 $";
     45static char datestr[]     = "$Date: 2006/01/13 08:25:10 $";
    4646static int stop = 0;
    4747
     
    607607
    608608  {
    609     char *str;
     609    const char *str;
    610610    time_t t;
    611611    struct tm * t2;
     
    810810
    811811/* let the output complete a block if necessary */
    812 static void signalhandler(int signal)
     812static void signalhandler(int sig)
    813813{
    814814  if(!stop)
    815815  {
    816816    fprintf(stderr, "Stop signal number %d received. "
    817     "Trying to terminate gentle.\n", signal);
     817    "Trying to terminate gentle.\n", sig);
    818818    stop = 1;
    819819    alarm(1);
     
    824824#ifdef __GNUC__
    825825static __attribute__ ((noreturn)) void signalhandler_alarm(
    826 int signal __attribute__((__unused__)))
     826int sig __attribute__((__unused__)))
    827827#else /* __GNUC__ */
    828 static void signalhandler_alarm(int signal)
     828static void signalhandler_alarm(int sig)
    829829#endif /* __GNUC__ */
    830830{
Note: See TracChangeset for help on using the changeset viewer.