Index: trunk/ntripclient/NtripLinuxClient.c
===================================================================
--- trunk/ntripclient/NtripLinuxClient.c	(revision 18)
+++ trunk/ntripclient/NtripLinuxClient.c	(revision 19)
@@ -1,5 +1,5 @@
 /*
   Easy example NTRIP client for Linux/Unix.
-  $Id: NtripLinuxClient.c,v 1.10 2005/02/16 15:23:36 stoecker Exp $
+  $Id: NtripLinuxClient.c,v 1.11 2005/04/19 11:28:10 stoecker Exp $
   Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de>
     
@@ -35,17 +35,16 @@
 
 #define MAXDATASIZE 1000 /* max number of bytes we can get at once */
-char buf[MAXDATASIZE];
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.10 $";
-static char datestr[]     = "$Date: 2005/02/16 15:23:36 $";
+static char revisionstr[] = "$Revision: 1.11 $";
+static char datestr[]     = "$Date: 2005/04/19 11:28:10 $";
 
 struct Args
 {
-  char *server;
-  int   port;
-  char *user;
-  char *password;
-  char *data;
+  const char *server;
+  int         port;
+  const char *user;
+  const char *password;
+  const char *data;
 };
 
@@ -131,5 +130,5 @@
 }
 
-static char encodingTable [64] = {
+static const char encodingTable [64] = {
   'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
   'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',
@@ -140,5 +139,5 @@
 /* does not buffer overrun, but breaks directly after an error */
 /* returns the number of required bytes */
-static int encode(char *buf, int size, char *user, char *pwd)
+static int encode(char *buf, int size, const char *user, const char *pwd)
 {
   unsigned char inbuf[3];
@@ -217,6 +216,8 @@
       "GET / HTTP/1.0\r\n"
       "User-Agent: %s/%s\r\n"
-//      "Accept: */*\r\n"
-//      "Connection: close\r\n"
+#ifdef UNUSED
+      "Accept: */*\r\n"
+      "Connection: close\r\n"
+#endif
       "\r\n"
       , AGENTSTRING, revisionstr);
@@ -227,6 +228,8 @@
       "GET /%s HTTP/1.0\r\n"
       "User-Agent: %s/%s\r\n"
-//      "Accept: */*\r\n"
-//      "Connection: close\r\n"
+#ifdef UNUSED
+      "Accept: */*\r\n"
+      "Connection: close\r\n"
+#endif
       "Authorization: Basic "
       , args.data, AGENTSTRING, revisionstr);
