Removed unnecessary casts (mostly dealing with memory allocation.) I

should never have added them in the first place.  They don't really
buy anything, and they can hide bugs.
This commit is contained in:
Robert James Kaes committed 2004-02-13 21:27:42 +00:00
1 parent bf22966f55
commit aee5a63849
13 files changed
+56 -62

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
/* $Id: log.c,v 1.27 2003-07-31 23:38:28 rjkaes Exp $
/* $Id: log.c,v 1.28 2004-02-13 21:27:42 rjkaes Exp $
*
* Logs the various messages which tinyproxy produces to either a log file or
* the syslog daemon. Not much to it...
@@ -143,7 +143,7 @@ log_message(int level, char *fmt, ...)
vsnprintf(str, STRING_LENGTH, fmt, args);
entry_buffer = (char*)safemalloc(strlen(str) + 6);
entry_buffer = safemalloc(strlen(str) + 6);
if (!entry_buffer)
return;
@@ -202,7 +202,7 @@ send_stored_logs(void)
int i;
for (i = 0; i != vector_length(log_message_storage); ++i) {
string = (char*)vector_getentry(log_message_storage, i, NULL);
string = vector_getentry(log_message_storage, i, NULL);
ptr = strchr(string, ' ') + 1;
level = atoi(string);