aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/krb5-auth-dialog.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 34ba69b..51b9532 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
Bug 534515: cleanups
+ * src/krb5-auth-dialog.c: Cleaner use of
+ gboolean. Patch from from Guido Günther.
+
+2008-06-09 Colin Walters <walters@verbum.org>
+
+ Bug 534515: cleanups
+
* src/krb5-auth-dialog.c: Use GOption instead of
libgnome. Patch from Guido Günther.
diff --git a/src/krb5-auth-dialog.c b/src/krb5-auth-dialog.c
index 803ce95..6aa09a5 100644
--- a/src/krb5-auth-dialog.c
+++ b/src/krb5-auth-dialog.c
@@ -576,7 +576,7 @@ main (int argc, char *argv[])
DBusGProxy *bus_proxy;
guint request_name_reply;
unsigned int flags;
- int run_auto = 0, run_always = 0;
+ gboolean run_auto = FALSE, run_always = FALSE;
const char *help_msg = "Run '" PACKAGE " --help' to see a full list of available command line options";
const GOptionEntry options [] = {
{"auto", 'a', 0, G_OPTION_ARG_NONE, &run_auto,
@@ -642,7 +642,7 @@ main (int argc, char *argv[])
}
if (run_always && !run_auto) {
- always_run++;
+ always_run = TRUE;
}
if (using_krb5 () || always_run) {
g_set_application_name (_("Network Authentication"));