Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
Commit10aa19f7b748385fa08f99a0766dac837ee9522a (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-12-15 19:17:31 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-12-15 19:17:31 +0100
Files6e5cf86973f81cf1d3248c241f55d0b84a5b25bd /badwolf.c
goodwolf-10aa19f7b748385fa08f99a0766dac837ee9522a.tar
goodwolf-10aa19f7b748385fa08f99a0766dac837ee9522a.tar.gz
goodwolf-10aa19f7b748385fa08f99a0766dac837ee9522a.zip
Parent5e1ea02409b318a46edc5d976738ca48d28246eb (diff)
badwolf_ensure_uri_scheme(): Fix const discarding
1 files changed, 3 insertions, 3 deletions
-rw-r--r--badwolf.c6
diff --git a/badwolf.c b/badwolf.c
index 289e218..bf42eb2 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -62,8 +62,8 @@ static void closeCb_clicked(GtkButton *close, gpointer user_data);
static void
notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data);
-gchar *
-badwolf_ensure_uri_scheme(gchar *text, gboolean try_file)
+const gchar *
+badwolf_ensure_uri_scheme(const gchar *text, gboolean try_file)
{
SoupURI *uri = soup_uri_new(text);
@@ -535,7 +535,7 @@ SearchEntryCb_stop__search(GtkSearchEntry *search, gpointer user_data)
}
struct Client *
-new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web_view)
+new_browser(struct Window *window, const gchar *target_url, WebKitWebView *related_web_view)
{
struct Client *browser = malloc(sizeof(struct Client));
target_url = badwolf_ensure_uri_scheme(target_url, (related_web_view == NULL));