summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-auth.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2014-08-12 11:03:27 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2014-08-26 16:54:01 -0500
commit2561c171e74747f47593192c5e9fd663fc3d0d8f (patch)
tree5ed01e49cc2d139e2c40a1dde3c21a221138f32e /src/virt-viewer-auth.c
parentb7c80494606c0dbfbae305411ad0080a5ef9282c (diff)
downloadvirt-viewer-2561c171e74747f47593192c5e9fd663fc3d0d8f.tar.gz
virt-viewer-2561c171e74747f47593192c5e9fd663fc3d0d8f.tar.xz
virt-viewer-2561c171e74747f47593192c5e9fd663fc3d0d8f.zip
Change collect_credentials() to return a boolean
Instead of returning 0 for success and -1 for failure, change to a boolean success value to be more consistent with the rest of the virt-viewer code.
Diffstat (limited to 'src/virt-viewer-auth.c')
-rw-r--r--src/virt-viewer-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virt-viewer-auth.c b/src/virt-viewer-auth.c
index a796619..556a10b 100644
--- a/src/virt-viewer-auth.c
+++ b/src/virt-viewer-auth.c
@@ -36,7 +36,7 @@
* field will be pre-filled with this value. The existing string will be freed
* before setting the output parameter to the user-entered value.
*/
-int
+gboolean
virt_viewer_auth_collect_credentials(GtkWindow *window,
const char *type,
const char *address,
@@ -102,7 +102,7 @@ virt_viewer_auth_collect_credentials(GtkWindow *window,
gtk_widget_destroy(GTK_WIDGET(dialog));
g_object_unref(G_OBJECT(creds));
- return response == GTK_RESPONSE_OK ? 0 : -1;
+ return response == GTK_RESPONSE_OK;
}
/*