deiv / driftnet

Driftnet watches network traffic, and picks out and displays JPEG and GIF images for display
GNU General Public License v2.0
433 stars 54 forks source link

Can't build with libwebsockets 4.3.0 #37

Closed hrhino closed 2 years ago

hrhino commented 2 years ago

libwebsockets recently removed a field from lws_http_mount (an unused[2]) which can't be initialized anymore:

--- a/src/http_display/httpd.c
+++ b/src/http_display/httpd.c
@@ -191,7 +191,6 @@ static void * http_server_dispatch(void *arg)
         LWSMPRO_FILE,                  /* mount type is a directory in a filesystem */
         1,                                     /* strlen("/"), ie length of the mountpoint */
         NULL,
-        { NULL, NULL } // sentinel
     };

     memset(&info, 0, sizeof info);
deiv commented 2 years ago

Hi,

Fixed in ad2e3e372f3c1d093351cf79ebbd96b40f54c783

Thanks !