From b35a38aa93670f6be06202f2ad3066a227f0a1b9 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Sun, 16 Jun 2024 18:50:09 +0200 Subject: fix code style --- examples/full_example.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/full_example.c') diff --git a/examples/full_example.c b/examples/full_example.c index 844f423..73096a6 100644 --- a/examples/full_example.c +++ b/examples/full_example.c @@ -1,10 +1,11 @@ -#include "auth.h" #include +#include "auth.h" + GMainLoop *loop; static void authenticate(AstalAuthPam *pam) { - if(!astal_auth_pam_start_authenticate(pam)) { + if (!astal_auth_pam_start_authenticate(pam)) { g_print("could not start authentication process\n"); g_object_unref(pam); g_main_loop_quit(loop); @@ -44,9 +45,7 @@ static void on_fail(AstalAuthPam *pam, const gchar *data) { authenticate(pam); } - int main(void) { - GMainContext *loopctx = NULL; loop = g_main_loop_new(loopctx, FALSE); -- cgit v1.2.3