Compare commits

...

2 Commits

Author SHA1 Message Date
Quentin Rameau 30f5464eb1 Fix usage message: -Pp don't exist anymore
Thanks to Eric Pruitt <eric.pruitt@gmail.com> for reporting!
2023-11-18 12:48:19 +01:00
Petr Vaněk e9b7ec6722 webext: add missing gio/gunixfdlist.h includes
This resolves two set of warnings pointed by compiler
-Wimplicit-function-declaration and -Wint-conversion, where the later
one can result with segfault caused by invalid cast from int to pointer.

Fixes: 665a709b52 ("webext: Exchange fd over webkit messages")
2022-10-22 13:07:19 +02:00
2 changed files with 3 additions and 1 deletions

3
surf.c
View File

@ -21,6 +21,7 @@
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkx.h>
#include <gio/gunixfdlist.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
@ -321,7 +322,7 @@ die(const char *errstr, ...)
void
usage(void)
{
die("usage: surf [-bBdDfFgGiIkKmMnNpPsStTvwxX]\n"
die("usage: surf [-bBdDfFgGiIkKmMnNsStTvwxX]\n"
"[-a cookiepolicies ] [-c cookiefile] [-C stylefile] [-e xid]\n"
"[-r scriptfile] [-u useragent] [-z zoomlevel] [uri]\n");
}

View File

@ -7,6 +7,7 @@
#include <stdlib.h>
#include <gio/gio.h>
#include <gio/gunixfdlist.h>
#include <webkit2/webkit-web-extension.h>
#include <webkitdom/webkitdom.h>
#include <webkitdom/WebKitDOMDOMWindowUnstable.h>