summaryrefslogtreecommitdiff
path: root/examples/full_example.c
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-06-16 18:50:09 +0200
committerkotontrion <[email protected]>2024-06-16 18:50:09 +0200
commitb35a38aa93670f6be06202f2ad3066a227f0a1b9 (patch)
tree1c51be4ed5c53202d11017508b5604b39db4ffef /examples/full_example.c
parent33b3b60ee513ce2d313ce31c292afc114a110eb3 (diff)
fix code style
Diffstat (limited to 'examples/full_example.c')
-rw-r--r--examples/full_example.c7
1 files changed, 3 insertions, 4 deletions
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 <bsd/readpassphrase.h>
+#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);