summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dive.h2
-rw-r--r--gtk-gui.c4
-rw-r--r--main.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/dive.h b/dive.h
index 58b6611f8..eda8d6b34 100644
--- a/dive.h
+++ b/dive.h
@@ -257,7 +257,7 @@ extern void add_event(struct dive *dive, int time, int type, int flags, int valu
/* UI related protopypes */
-extern void init_ui(int argc, char **argv);
+extern void init_ui(int *argcp, char ***argvp);
extern void run_ui(void);
diff --git a/gtk-gui.c b/gtk-gui.c
index b16050838..676c0d063 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -739,7 +739,7 @@ static int get_from_registry(HKEY hkey, const char *key)
}
#endif
-void init_ui(int argc, char **argv)
+void init_ui(int *argcp, char ***argvp)
{
GtkWidget *win;
GtkWidget *notebook;
@@ -755,7 +755,7 @@ void init_ui(int argc, char **argv)
"GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP, 0
};
- gtk_init(&argc, &argv);
+ gtk_init(argcp, argvp);
settings = gtk_settings_get_default();
gtk_settings_set_long_property(settings, "gtk_tooltip_timeout", 10, "subsurface setting");
diff --git a/main.c b/main.c
index 5fed4cd6e..471abc7b4 100644
--- a/main.c
+++ b/main.c
@@ -217,7 +217,7 @@ int main(int argc, char **argv)
parse_xml_init();
- init_ui(argc, argv);
+ init_ui(&argc, &argv);
for (i = 1; i < argc; i++) {
const char *a = argv[i];