Changeset 41 in ntrip for trunk/ntripclient


Ignore:
Timestamp:
Jun 22, 2006, 2:22:02 PM (14 years ago)
Author:
stoecker
Message:

fixed Sourcetable mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/NtripLinuxClient.c

    r40 r41  
    11/*
    22  Easy example NTRIP client for Linux/Unix.
    3   $Id: NtripLinuxClient.c,v 1.16 2006/04/27 09:44:17 stoecker Exp $
     3  $Id: NtripLinuxClient.c,v 1.17 2006/06/22 11:57:14 stoecker Exp $
    44  Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de>
    55   
     
    4040
    4141/* CVS revision and version */
    42 static char revisionstr[] = "$Revision: 1.16 $";
    43 static char datestr[]     = "$Date: 2006/04/27 09:44:17 $";
     42static char revisionstr[] = "$Revision: 1.17 $";
     43static char datestr[]     = "$Date: 2006/06/22 11:57:14 $";
    4444
    4545struct Args
     
    8989  url += 6; /* skip ntrip: */
    9090
    91   /* scan for mountpoint */
    92   args->data = Buffer;
    93   while(*url && *url != '@' && *url != '/' && Buffer != Bufend)
    94     *(Buffer++) = *(url++);
    95   if(Buffer == args->data)
    96     return "Mountpoint required.";
    97   else if(Buffer >= Bufend-1)
    98     return "Parsing buffer too short.";
    99   *(Buffer++) = 0;
     91  if(*url != '@' && *url != '/')
     92  {
     93    /* scan for mountpoint */
     94    args->data = Buffer;
     95    while(*url && *url != '@' && *url != '/' && Buffer != Bufend)
     96      *(Buffer++) = *(url++);
     97    if(Buffer == args->data)
     98      return "Mountpoint required.";
     99    else if(Buffer >= Bufend-1)
     100      return "Parsing buffer too short.";
     101    *(Buffer++) = 0;
     102  }
    100103
    101104  if(*url == '/') /* username and password */
Note: See TracChangeset for help on using the changeset viewer.