diff options
author | Dan Williams <dcbw@redhat.com> | 2006-05-28 03:30:44 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2006-05-28 03:30:44 +0000 |
commit | 6392fe3fdf1e5ec5c848195b2acfd132665c44b3 (patch) | |
tree | 3c334cd8fedd028bc0344f9b5672fd34154d5ec1 /src/NetworkManager.c | |
parent | 9cbc1782c7f3a792d5747e3f2acbd004e409ed7a (diff) | |
download | NetworkManager-6392fe3fdf1e5ec5c848195b2acfd132665c44b3.tar.gz |
Fix up spacing.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1773 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src/NetworkManager.c')
-rw-r--r-- | src/NetworkManager.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/NetworkManager.c b/src/NetworkManager.c index 26caa73f36..6c98d6495d 100644 --- a/src/NetworkManager.c +++ b/src/NetworkManager.c @@ -673,7 +673,7 @@ int main( int argc, char *argv[] ) { gboolean become_daemon = FALSE; gboolean enable_test_devices = FALSE; - gboolean show_usage = FALSE; + gboolean show_usage = FALSE; char * owner; char * pidfile = NULL; char * user_pidfile = NULL; @@ -690,28 +690,28 @@ int main( int argc, char *argv[] ) /* Parse options */ { - GOptionContext *opt_ctx = NULL; - GOptionEntry options[] = { - {"no-daemon", 0, 0, G_OPTION_ARG_NONE, &become_daemon, "Don't become a daemon", NULL}, - {"pid-file", 0, 0, G_OPTION_ARG_STRING, &user_pidfile, "Specify the location of a PID file", NULL}, - {"enable-test-devices", 0, 0, G_OPTION_ARG_NONE, &enable_test_devices, "Allow dummy devices to be created via DBUS methods [DEBUG]", NULL}, - {"info", 0, 0, G_OPTION_ARG_NONE, &show_usage, "Show application information", NULL}, - {NULL} + GOptionContext *opt_ctx = NULL; + GOptionEntry options[] = { + {"no-daemon", 0, 0, G_OPTION_ARG_NONE, &become_daemon, "Don't become a daemon", NULL}, + {"pid-file", 0, 0, G_OPTION_ARG_STRING, &user_pidfile, "Specify the location of a PID file", NULL}, + {"enable-test-devices", 0, 0, G_OPTION_ARG_NONE, &enable_test_devices, "Allow dummy devices to be created via DBUS methods [DEBUG]", NULL}, + {"info", 0, 0, G_OPTION_ARG_NONE, &show_usage, "Show application information", NULL}, + {NULL} }; - opt_ctx = g_option_context_new(""); - g_option_context_add_main_entries(opt_ctx, options, NULL); - g_option_context_parse(opt_ctx, &argc, &argv, NULL); - g_option_context_free(opt_ctx); - } - - /* Tricky: become_daemon is FALSE by default, so unless it's TRUE because of a CLI - * option, it'll become TRUE after this */ - become_daemon = !become_daemon; - if (show_usage == TRUE) - { - nm_print_usage(); - exit (EXIT_SUCCESS); - } + opt_ctx = g_option_context_new(""); + g_option_context_add_main_entries(opt_ctx, options, NULL); + g_option_context_parse(opt_ctx, &argc, &argv, NULL); + g_option_context_free(opt_ctx); + } + + /* Tricky: become_daemon is FALSE by default, so unless it's TRUE because of a CLI + * option, it'll become TRUE after this */ + become_daemon = !become_daemon; + if (show_usage == TRUE) + { + nm_print_usage(); + exit (EXIT_SUCCESS); + } if (become_daemon) { |