summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-07-31 23:38:28 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-07-31 23:38:28 +0000
commit6aaa863432967b99d0e2c87116b4ec844b90436f (patch)
tree40d8a50800514332aab7e469c351e4491cab6dfe /src/buffer.c
parentab02f47a297693752e1d68d5eaf914c77cfb652c (diff)
downloadtinyproxy-6aaa863432967b99d0e2c87116b4ec844b90436f.tar.gz
tinyproxy-6aaa863432967b99d0e2c87116b4ec844b90436f.zip
Added appropriate casts from (void*) so that the code will compile
cleanly with a C++ compiler. (Tested using GCC 3.3)
Diffstat (limited to '')
-rw-r--r--src/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1d48e0c..db805d1 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1,4 +1,4 @@
-/* $Id: buffer.c,v 1.22 2002-05-24 04:45:32 rjkaes Exp $
+/* $Id: buffer.c,v 1.23 2003-07-31 23:38:28 rjkaes Exp $
*
* The buffer used in each connection is a linked list of lines. As the lines
* are read in and written out the buffer expands and contracts. Basically,
@@ -60,10 +60,10 @@ makenewline(unsigned char *data, size_t length)
assert(data != NULL);
assert(length > 0);
- if (!(newline = safemalloc(sizeof(struct bufline_s))))
+ if (!(newline = (struct bufline_s*)safemalloc(sizeof(struct bufline_s))))
return NULL;
- if (!(newline->string = safemalloc(length))) {
+ if (!(newline->string = (unsigned char*)safemalloc(length))) {
safefree(newline);
return NULL;
}
@@ -104,7 +104,7 @@ new_buffer(void)
{
struct buffer_s *buffptr;
- if (!(buffptr = safemalloc(sizeof(struct buffer_s))))
+ if (!(buffptr = (struct buffer_s*)safemalloc(sizeof(struct buffer_s))))
return NULL;
/*