diff src/config/main.c @ 14629:c93ca5e46a8a

Marked functions parameters that are allowed to be NULL. Some APIs were also changed. The non-obvious APIs where NULL parameter was changed to "" are master_service_init() and auth_master_user_list_init(). These checks can currently be enabled only on a patched clang: http://llvm.org/bugs/show_bug.cgi?id=6786
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Jun 2012 00:52:57 +0300
parents ba770cba5598
children d0d7b810646b
line wrap: on
line diff
--- a/src/config/main.c	Fri Jun 22 21:59:01 2012 +0300
+++ b/src/config/main.c	Sun Jun 24 00:52:57 2012 +0300
@@ -18,7 +18,7 @@
 {
 	const char *path, *error;
 
-	master_service = master_service_init("config", 0, &argc, &argv, NULL);
+	master_service = master_service_init("config", 0, &argc, &argv, "");
 	if (master_getopt(master_service) > 0)
 		return FATAL_DEFAULT;
 	master_service_init_log(master_service, "config: ");