Changeset 30 in ntrip
- Timestamp:
- Apr 20, 2006, 10:37:23 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/NtripLinuxServer.c
r24 r30 41 41 */ 42 42 43 /* $Id: NtripLinuxServer.c,v 1.1 2 2005/06/02 09:33:11stoecker Exp $43 /* $Id: NtripLinuxServer.c,v 1.13 2005/06/07 14:47:52 stoecker Exp $ 44 44 * Changes - Version 0.7 45 45 * Sep 22 2003 Steffen Tschirpke <St.Tschirpke@actina.de> … … 127 127 static void usage(int); 128 128 129 static void sighandler_alarm(/*int arg*/) 129 #ifdef __GNUC__ 130 static __attribute__ ((noreturn)) void sighandler_alarm( 131 int sig __attribute__((__unused__))) 132 #else /* __GNUC__ */ 133 static void sighandler_alarm(int sig) 134 #endif /* __GNUC__ */ 130 135 { 131 136 fprintf(stderr, "ERROR: more than %d seconds no activity\n", ALARMTIME); … … 513 518 char buffer[BUFSZ] = { 0 }; 514 519 char sisnetbackbuffer[200]; 515 int nBufferBytes = 0 , i;520 int nBufferBytes = 0; 516 521 /* data transmission */ 517 522 printf("transfering data ...\n"); … … 557 562 if(nBufferBytes) 558 563 { 564 int i; 559 565 /* send data */ 560 566 if((i = send(sock, buffer, (size_t)nBufferBytes, MSG_DONTWAIT)) … … 717 723 */ 718 724 719 static void usage(int rc) 725 static 726 #ifdef __GNUC__ 727 __attribute__ ((noreturn)) 728 #endif /* __GNUC__ */ 729 void usage(int rc) 720 730 { 721 731 fprintf(stderr, "Usage: %s [OPTIONS]\n", VERSION); -
trunk/rtcm3torinex/rtcm3torinex.c
r29 r30 1 1 /* 2 2 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 $ 4 4 Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronav.de> 5 5 … … 42 42 43 43 /* CVS revision and version */ 44 static char revisionstr[] = "$Revision: 1. 1$";45 static char datestr[] = "$Date: 2006/01/1 2 16:19:10 $";44 static char revisionstr[] = "$Revision: 1.2 $"; 45 static char datestr[] = "$Date: 2006/01/13 08:25:10 $"; 46 46 static int stop = 0; 47 47 … … 607 607 608 608 { 609 c har *str;609 const char *str; 610 610 time_t t; 611 611 struct tm * t2; … … 810 810 811 811 /* let the output complete a block if necessary */ 812 static void signalhandler(int sig nal)812 static void signalhandler(int sig) 813 813 { 814 814 if(!stop) 815 815 { 816 816 fprintf(stderr, "Stop signal number %d received. " 817 "Trying to terminate gentle.\n", sig nal);817 "Trying to terminate gentle.\n", sig); 818 818 stop = 1; 819 819 alarm(1); … … 824 824 #ifdef __GNUC__ 825 825 static __attribute__ ((noreturn)) void signalhandler_alarm( 826 int sig nal__attribute__((__unused__)))826 int sig __attribute__((__unused__))) 827 827 #else /* __GNUC__ */ 828 static void signalhandler_alarm(int sig nal)828 static void signalhandler_alarm(int sig) 829 829 #endif /* __GNUC__ */ 830 830 {
Note:
See TracChangeset
for help on using the changeset viewer.