summaryrefslogtreecommitdiffhomepage
path: root/src/sock.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-12-15 20:04:04 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-12-15 20:04:04 +0000
commitb969ed430228ffc2300c2aa1eb1356a362171302 (patch)
tree7d8cc2f9e6a1fb413e94799f9b5eb7025e2b49f8 /src/sock.h
parentcad9a5d11b2e1034135123c0936c24303f674bc6 (diff)
Changed safe_write() to fully send all the data in the buffer it was
passed. Also safe_write() and safe_read() now use char pointer buffers rather than the void pointer style.
Diffstat (limited to 'src/sock.h')
-rw-r--r--src/sock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sock.h b/src/sock.h
index 2622822..5b09f63 100644
--- a/src/sock.h
+++ b/src/sock.h
@@ -1,4 +1,4 @@
-/* $Id: sock.h,v 1.7 2001-11-22 00:19:18 rjkaes Exp $
+/* $Id: sock.h,v 1.8 2001-12-15 20:04:04 rjkaes Exp $
*
* See 'sock.c' for a detailed description.
*
@@ -35,8 +35,8 @@ extern int socket_blocking(int sock);
extern char *getpeer_ip(int fd, char *ipaddr);
extern char *getpeer_string(int fd, char *string);
-extern ssize_t safe_write(int fd, const void *buffer, size_t count);
-extern ssize_t safe_read(int fd, void *buffer, size_t count);
+extern ssize_t safe_write(int fd, const char *buffer, size_t count);
+extern ssize_t safe_read(int fd, char *buffer, size_t count);
extern ssize_t readline(int fd, char **whole_buffer);