Changeset 503 in ntrip


Ignore:
Timestamp:
Oct 8, 2007, 3:29:45 PM (17 years ago)
Author:
stoecker
Message:

fixed some format violations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/rtcm3torinex.c

    r502 r503  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.22 2007/10/01 11:07:08 stoecker Exp $
     3  $Id: rtcm3torinex.c,v 1.23 2007/10/08 12:51:24 stoecker Exp $
    44  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@alberding.eu>
    55
     
    5151
    5252/* CVS revision and version */
    53 static char revisionstr[] = "$Revision: 1.22 $";
     53static char revisionstr[] = "$Revision: 1.23 $";
    5454
    5555#ifndef COMPILEDATE
     
    741741  const char *pgm;
    742742  const char *marker;
     743  const char *markertype;
    743744  const char *observer;
    744745  const char *receiver;
     
    813814}
    814815
    815 static int HandleRunBy(char *buffer, int buffersize, const char **u)
     816static int HandleRunBy(char *buffer, int buffersize, const char **u,
     817int rinex3)
    816818{
    817819  const char *user;
     
    836838  if(u) *u = user;
    837839  return 1+snprintf(buffer, buffersize,
     840  rinex3 ?
     841  "RTCM3TORINEX %-7.7s%-20.20s%04d%02d%02d %02d%02d%02d UTC "
     842  "PGM / RUN BY / DATE" :
    838843  "RTCM3TORINEX %-7.7s%-20.20s%04d-%02d-%02d %02d:%02d    "
    839844  "PGM / RUN BY / DATE", revisionstr, user, 1900+t2->tm_year,
    840   t2->tm_mon+1, t2->tm_mday, t2->tm_hour, t2->tm_min);
     845  t2->tm_mon+1, t2->tm_mday, t2->tm_hour, t2->tm_min, t2->tm_sec);
    841846}
    842847
     
    859864    const char *str;
    860865    hdata.data.named.pgm = buffer;
    861     i = HandleRunBy(buffer, buffersize, &str);
     866    i = HandleRunBy(buffer, buffersize, &str, Parser->rinex3);
    862867    buffer += i; buffersize -= i;
    863868    hdata.data.named.observer = buffer;
     
    871876  "RTCM3TORINEX                                                "
    872877  "MARKER NAME";
     878
     879  hdata.data.named.markertype =  !Parser->rinex3 ? 0 :
     880  "GEODETIC                                                    "
     881  "MARKER TYPE";
    873882
    874883  hdata.data.named.receiver =
     
    10421051  }
    10431052
    1044   hdata.numheaders = 14;
     1053  hdata.numheaders = 15;
    10451054
    10461055  if(Parser->headerfile)
     
    11791188              fprintf(Parser->gpsfile,
    11801189              "%9.2f%11sN: GNSS NAV DATA    M: Mixed%12sRINEX VERSION / TYPE\n", 3.0, "", "");
    1181               HandleRunBy(buffer, sizeof(buffer), 0);
     1190              HandleRunBy(buffer, sizeof(buffer), 0, Parser->rinex3);
    11821191              fprintf(Parser->gpsfile, "%s\n%60sEND OF HEADER\n", buffer, "");
    11831192            }
     
    12021211                fprintf(Parser->glonassfile,
    12031212                "%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n", 2.1, "", "");
    1204                 HandleRunBy(buffer, sizeof(buffer), 0);
     1213                HandleRunBy(buffer, sizeof(buffer), 0, Parser->rinex3);
    12051214                fprintf(Parser->glonassfile, "%s\n%60sEND OF HEADER\n", buffer, "");
    12061215              }
     
    12221231                fprintf(Parser->gpsfile,
    12231232                "%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 2.1, "", "");
    1224                 HandleRunBy(buffer, sizeof(buffer), 0);
     1233                HandleRunBy(buffer, sizeof(buffer), 0, Parser->rinex3);
    12251234                fprintf(Parser->gpsfile, "%s\n%60sEND OF HEADER\n", buffer, "");
    12261235              }
     
    15251534
    15261535#ifndef NO_RTCM3_MAIN
    1527 static char datestr[]     = "$Date: 2007/10/01 11:07:08 $";
     1536static char datestr[]     = "$Date: 2007/10/08 12:51:24 $";
    15281537
    15291538/* The string, which is send as agent in HTTP request */
     
    18341843  if(args->gpsephemeris && args->glonassephemeris && args->rinex3)
    18351844  {
    1836     RTCM3Error("RINEX3 produces a combined ephemeris file, but 2 files were specified.\n");
     1845    RTCM3Error("RINEX3 produces a combined ephemeris file, but 2 files were specified.\n"
     1846    "Please specify only one navigation file.\n");
    18371847    res = 0;
    18381848  }
Note: See TracChangeset for help on using the changeset viewer.