Changeset 49 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
Aug 3, 2006, 5:10:33 PM (16 years ago)
Author:
stoecker
Message:

some changes detected by using icc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/NtripLinuxServer.c

    r48 r49  
    4141 */
    4242
    43 /* $Id$
     43/* $Id: NtripLinuxServer.c,v 1.20 2006/07/27 14:07:15 stoecker Exp $
    4444 * Changes - Version 0.7
    4545 * Sep 22 2003  Steffen Tschirpke <St.Tschirpke@actina.de>
     
    119119
    120120enum MODE { SERIAL = 1, TCPSOCKET = 2, INFILE = 3, SISNET = 4, UDPSOCKET = 5,
    121 CASTER = 6};
     121CASTER = 6, LAST};
    122122
    123123#define VERSION         "NTRIP NtripServerLinux/0.17"
     
    220220    {
    221221    case 'M':
    222       if(!strcmp(optarg, "serial")) mode = 1;
    223       else if(!strcmp(optarg, "tcpsocket")) mode = 2;
    224       else if(!strcmp(optarg, "file")) mode = 3;
    225       else if(!strcmp(optarg, "sisnet")) mode = 4;
    226       else if(!strcmp(optarg, "udpsocket")) mode = 5;
    227       else if(!strcmp(optarg, "caster")) mode = 6;
     222      if(!strcmp(optarg, "serial")) mode = SERIAL;
     223      else if(!strcmp(optarg, "tcpsocket")) mode = TCPSOCKET;
     224      else if(!strcmp(optarg, "file")) mode = INFILE;
     225      else if(!strcmp(optarg, "sisnet")) mode = SISNET;
     226      else if(!strcmp(optarg, "udpsocket")) mode = UDPSOCKET;
     227      else if(!strcmp(optarg, "caster")) mode = CASTER;
    228228      else mode = atoi(optarg);
    229       if((mode == 0) || (mode > 6))
     229      if((mode == 0) || (mode >= LAST))
    230230      {
    231231        fprintf(stderr, "ERROR: can't convert %s to a valid mode\n", optarg);
Note: See TracChangeset for help on using the changeset viewer.