Fix definition of main

Fixes build with clang
This commit is contained in:
jca 2017-05-03 12:50:50 +00:00
parent b2b9179c56
commit b8266fb829

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-src_chbg_c,v 1.1 2017/05/03 12:50:50 jca Exp $
--- src/chbg.c.orig
+++ src/chbg.c
@@ -2178,11 +2178,12 @@ static void chbg_cleanup()
#endif
}
-gint main(argc, argv)
-guint argc;
-gchar **argv;
+int
+main(int ac, char **av)
{
gchar *p,pom[PATH_MAX];
+ gint argc = ac;
+ gchar **argv = av;
stop_changing = FALSE;