use size_t where appropriate instead of unsigned int
diff --git a/README b/README
index 0be8952..493a25d 100644
--- a/README
+++ b/README
@@ -87,7 +87,7 @@
IIb. Receiving Data
void libtelnet_push(libtelnet_t *telnet,
- const unsigned char *buffer, unsigned int size, void *user_data);
+ const char *buffer, unsigned int size, void *user_data);
When your application receives data over the socket from the
remote end, it must pass the received bytes into this function.
@@ -125,12 +125,12 @@
negotiate.
void libtelnet_send_data(libtelnet_t *telnet,
- const unsigned char *buffer, unsigned int size);
+ const char *buffer, unsigned int size);
Sends raw data, which would be either the process output from
a server or the user input from a client.
void libtelnet_send_subnegotiation(libtelnet_t *telnet,
- unsigned char telopt, const unsigned char *buffer,
+ unsigned char telopt, const char *buffer,
unsigned int size);
Sends a TELNET sub-negotiation command. The telopt parameter
is the sub-negotiation option.
@@ -187,7 +187,7 @@
pointer passed to libtelnet_init().
struct libtelnet_event_t {
- const unsigned char *buffer;
+ const char *buffer;
unsigned int size;
libtelnet_event_type_t type;
unsigned char command;