mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 14:50:07 +01:00
main/trivial: change order of arguments for nm_main_utils_early_setup()
Change the order of the argv and argc argument to match the main() function.
This commit is contained in:
parent
b8a2f42a38
commit
ee4543bd6e
4 changed files with 4 additions and 4 deletions
|
|
@ -172,8 +172,8 @@ done:
|
|||
|
||||
gboolean
|
||||
nm_main_utils_early_setup (const char *progname,
|
||||
char **argv[],
|
||||
int *argc,
|
||||
char **argv[],
|
||||
GOptionEntry *options,
|
||||
void (*option_context_hook) (gpointer user_data, GOptionContext *opt_ctx),
|
||||
gpointer option_context_hook_data,
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ gboolean nm_main_utils_write_pidfile (const char *pidfile);
|
|||
gboolean nm_main_utils_check_pidfile (const char *pidfile, const char *name);
|
||||
|
||||
gboolean nm_main_utils_early_setup (const char *progname,
|
||||
char **argv[],
|
||||
int *argc,
|
||||
char **argv[],
|
||||
GOptionEntry *options,
|
||||
void (*option_context_hook) (gpointer user_data, GOptionContext *opt_ctx),
|
||||
gpointer option_context_hook_data,
|
||||
|
|
|
|||
|
|
@ -242,8 +242,8 @@ main (int argc, char *argv[])
|
|||
|
||||
config_cli = nm_config_cmd_line_options_new ();
|
||||
if (!nm_main_utils_early_setup ("NetworkManager",
|
||||
&argv,
|
||||
&argc,
|
||||
&argv,
|
||||
options,
|
||||
(void (*)(gpointer, GOptionContext *)) nm_config_cmd_line_options_add_to_entries,
|
||||
config_cli,
|
||||
|
|
|
|||
|
|
@ -311,8 +311,8 @@ main (int argc, char *argv[])
|
|||
setpgid (getpid (), getpid ());
|
||||
|
||||
if (!nm_main_utils_early_setup ("nm-iface-helper",
|
||||
&argv,
|
||||
&argc,
|
||||
&argv,
|
||||
options,
|
||||
NULL,
|
||||
NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue