Changeset 19 in ntrip for trunk


Ignore:
Timestamp:
Apr 25, 2005, 6:05:57 PM (20 years ago)
Author:
stoecker
Message:

fixed warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/NtripLinuxClient.c

    r17 r19  
    11/*
    22  Easy example NTRIP client for Linux/Unix.
    3   $Id: NtripLinuxClient.c,v 1.10 2005/02/16 15:23:36 stoecker Exp $
     3  $Id: NtripLinuxClient.c,v 1.11 2005/04/19 11:28:10 stoecker Exp $
    44  Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de>
    55   
     
    3535
    3636#define MAXDATASIZE 1000 /* max number of bytes we can get at once */
    37 char buf[MAXDATASIZE];
    3837
    3938/* CVS revision and version */
    40 static char revisionstr[] = "$Revision: 1.10 $";
    41 static char datestr[]     = "$Date: 2005/02/16 15:23:36 $";
     39static char revisionstr[] = "$Revision: 1.11 $";
     40static char datestr[]     = "$Date: 2005/04/19 11:28:10 $";
    4241
    4342struct Args
    4443{
    45   char *server;
    46   int   port;
    47   char *user;
    48   char *password;
    49   char *data;
     44  const char *server;
     45  int         port;
     46  const char *user;
     47  const char *password;
     48  const char *data;
    5049};
    5150
     
    131130}
    132131
    133 static char encodingTable [64] = {
     132static const char encodingTable [64] = {
    134133  'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
    135134  'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',
     
    140139/* does not buffer overrun, but breaks directly after an error */
    141140/* returns the number of required bytes */
    142 static int encode(char *buf, int size, char *user, char *pwd)
     141static int encode(char *buf, int size, const char *user, const char *pwd)
    143142{
    144143  unsigned char inbuf[3];
     
    217216      "GET / HTTP/1.0\r\n"
    218217      "User-Agent: %s/%s\r\n"
    219 //      "Accept: */*\r\n"
    220 //      "Connection: close\r\n"
     218#ifdef UNUSED
     219      "Accept: */*\r\n"
     220      "Connection: close\r\n"
     221#endif
    221222      "\r\n"
    222223      , AGENTSTRING, revisionstr);
     
    227228      "GET /%s HTTP/1.0\r\n"
    228229      "User-Agent: %s/%s\r\n"
    229 //      "Accept: */*\r\n"
    230 //      "Connection: close\r\n"
     230#ifdef UNUSED
     231      "Accept: */*\r\n"
     232      "Connection: close\r\n"
     233#endif
    231234      "Authorization: Basic "
    232235      , args.data, AGENTSTRING, revisionstr);
Note: See TracChangeset for help on using the changeset viewer.