summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-04-17 16:53:41 +0000
committerGuy Harris <guy@alum.mit.edu>2008-04-17 16:53:41 +0000
commit2172b8dfb1dd486e3f7f15e4c1d00589ba7393ea (patch)
tree0f79b5aea6e7eac2abfe835d0193d24acda36056 /gtk
parent9f35411f35a51ab053a6e4bccaebd90a6846d5f7 (diff)
downloadwireshark-2172b8dfb1dd486e3f7f15e4c1d00589ba7393ea.tar.gz
Sigh. g_spawn_async() should take a "const gchar **" argument for argv,
as it shouldn't be modifying the strings, but it's "gchar **", so we can't make argv an array of "const gchar *" - which means that you can't put a "{g}char *" into it without a cast. Clean up white space. svn path=/trunk/; revision=25100
Diffstat (limited to 'gtk')
-rw-r--r--gtk/webbrowser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/webbrowser.c b/gtk/webbrowser.c
index f268e9c2ff..c5e5e80e62 100644
--- a/gtk/webbrowser.c
+++ b/gtk/webbrowser.c
@@ -235,14 +235,14 @@ filemanager_open_directory (const gchar *path)
#elif defined(HAVE_XDG_OPEN)
- GError *error = NULL;
- gchar *argv[3];
- gboolean retval;
+ GError *error = NULL;
+ gchar *argv[3];
+ gboolean retval;
g_return_val_if_fail (path != NULL, FALSE);
argv[0] = "xdg-open";
- argv[1] = path;
+ argv[1] = (char *)path; /* Grr - g_spawn_async() shouldn't modify this */
argv[2] = NULL;
/*