From e4bfb6597279ca3d9aa3678a617f5f0aef298278 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 1 Nov 2011 17:09:15 -0700 Subject: Fix 'init_ui()' so that it can change argc/argv That's what gtk_init() does with gtk-specific arguments. IOW, if you do things like subsurface --g-fatal-warnings dives.xml to get a real abort on gtk warnings, gtk_init needs to be able to actually change argc/argv. Signed-off-by: Linus Torvalds --- dive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dive.h') 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); -- cgit v1.2.3-70-g09d2