Permalink
Browse files

redsocks now compiles with libevent-2.0

  • Loading branch information...
1 parent 79e22a6 commit d517e650ef238db35f0df5061cba096a8ba596ec @darkk committed Aug 1, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 log.c
  2. +1 −1 redsocks.c
View
@@ -143,7 +143,7 @@ void _log_vwrite(const char *file, int line, const char *func, int do_errno, int
if (buff) {
evbuffer_add_vprintf(buff, fmt, ap);
- message = (const char*)buff->buffer;
+ message = (const char*)EVBUFFER_DATA(buff);
}
else
message = lowmem;
View
@@ -181,7 +181,7 @@ void redsocks_log_write_plain(
va_start(ap, orig_fmt);
if (fmt) {
errno = saved_errno;
- _log_vwrite(file, line, func, do_errno, priority, (const char*)fmt->buffer, ap);
+ _log_vwrite(file, line, func, do_errno, priority, (const char*)EVBUFFER_DATA(fmt), ap);
evbuffer_free(fmt);
}
va_end(ap);

0 comments on commit d517e65

Please sign in to comment.