[Libevent-users] patch to get event_debug working again in svn trunk

Charles Kerr charles at rebelbase.com
Mon Sep 10 15:46:37 EDT 2007


The current svn trunk (r428) doesn't build when debugging messages
are turned on.  This small patch makes the changes need to get things
compiling again.

Index: http.c
===================================================================
--- http.c      (revision 428)
+++ http.c      (working copy)
@@ -1499,7 +1499,7 @@
         evcon->fd = bind_socket(evcon->bind_address, 0);
         if (evcon->fd == -1) {
                 event_debug(("%s: failed to bind to \"%s\"",
-                       __func__, bind_address));
+                       __func__, evcon->bind_address));
                 return (-1);
         }

@@ -2439,7 +2439,7 @@

         if (ai == NULL) {
                 event_debug(("%s: make_addrinfo: \"%s:%d\"",
-                       __func__, evcon->address, evcon->port));
+                       __func__, address, port));
                 return (-1);
         }



More information about the Libevent-users mailing list