* simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
(SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
(SimpleSocket::printf): Ditto.
(SimpleSocket::write): Ditto.
* simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
printf and write.
* nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
(NetIO_FTP::NetIO_FTP): Remove unused variable done.
* nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
+2001-11-09 Robert Collins <rbtcollins@hotmail.com>
+
+ * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
+ (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
+ (SimpleSocket::printf): Ditto.
+ (SimpleSocket::write): Ditto.
+ * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
+ printf and write.
+ * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
+ (NetIO_FTP::NetIO_FTP): Remove unused variable done.
+ * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
+
2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
* geturl.cc (get_url_to_string): clean up memory leak
/* This file is responsible for implementing all direct FTP protocol
channels. It is intentionally simplistic. */
-static char *cvsid = "\n%%% $Id$\n";
+#if 0
+static const char *cvsid = "\n%%% $Id$\n";
+#endif
#include "win32.h"
#include "winsock.h"
if (cmd == 0)
{
SimpleSocket *c = new SimpleSocket (host, port);
- int done = 0;
code = ftp_line (c);
auth_retry:
/* This file is responsible for implementing all direct HTTP protocol
channels. It is intentionally simplistic. */
-static char *cvsid = "\n%%% $Id$\n";
+#if 0
+static const char *cvsid = "\n%%% $Id$\n";
+#endif
#include "win32.h"
#include "winsock.h"
/* Simplified socket access functions */
-static char *cvsid = "\n%%% $Id$\n";
+#if 0
+static const char *cvsid = "\n%%% $Id$\n";
+#endif
#include "win32.h"
#include <winsock.h>
#define SSBUFSZ 1024
-SimpleSocket::SimpleSocket (char *hostname, int port)
+SimpleSocket::SimpleSocket (const char *hostname, int port)
{
static int initted = 0;
if (!initted)
}
int
-SimpleSocket::printf (char *fmt, ...)
+SimpleSocket::printf (const char *fmt, ...)
{
char buf[SSBUFSZ];
va_list args;
}
int
-SimpleSocket::write (char *buf, int len)
+SimpleSocket::write (const char *buf, int len)
{
return send (s, buf, len, 0);
}
int fill ();
public:
- SimpleSocket (char *hostname, int port);
+ SimpleSocket (const char *hostname, int port);
~SimpleSocket ();
int ok ();
- int printf (char *fmt, ...);
- int write (char *buf, int len);
+ int printf (const char *fmt, ...);
+ int write (const char *buf, int len);
char *gets ();
int read (char *buf, int len);