Changeset 1183 in ntrip for trunk/ntripclient


Ignore:
Timestamp:
Nov 4, 2008, 4:35:03 PM (11 years ago)
Author:
stoecker
Message:

fixed illegal argument parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/ntripclient.c

    r914 r1183  
    11/*
    22  NTRIP client for POSIX.
    3   $Id: ntripclient.c,v 1.44 2008/04/22 14:26:44 stoecker Exp $
     3  $Id: ntripclient.c,v 1.45 2008/05/15 16:51:04 stoecker Exp $
    44  Copyright (C) 2003-2008 by Dirk Stöcker <soft@dstoecker.de>
    55
     
    5959
    6060/* CVS revision and version */
    61 static char revisionstr[] = "$Revision: 1.44 $";
    62 static char datestr[]     = "$Date: 2008/04/22 14:26:44 $";
     61static char revisionstr[] = "$Revision: 1.45 $";
     62static char datestr[]     = "$Date: 2008/05/15 16:51:04 $";
    6363
    6464enum MODE { HTTP = 1, RTSP = 2, NTRIP1 = 3, AUTO = 4, END };
     
    398398        int i = 0;
    399399        args->protocol = SerialGetProtocol(optarg, &i);
    400         if(i)
     400        if(!i)
    401401        {
    402402          fprintf(stderr, "Protocol '%s' unknown\n", optarg);
     
    409409        int i = 0;
    410410        args->parity = SerialGetParity(optarg, &i);
    411         if(i)
     411        if(!i)
    412412        {
    413413          fprintf(stderr, "Parity '%s' unknown\n", optarg);
Note: See TracChangeset for help on using the changeset viewer.