From fe9104096fd8de9f79338f750a13e0ddccf05429 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 9 Jun 2017 22:04:58 +0100 Subject: Reflow monkey code, it was annoying me too much --- frontends/monkey/401login.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'frontends/monkey/401login.c') diff --git a/frontends/monkey/401login.c b/frontends/monkey/401login.c index 8b4d33d7d..090f18984 100644 --- a/frontends/monkey/401login.c +++ b/frontends/monkey/401login.c @@ -24,11 +24,11 @@ #include "monkey/401login.h" typedef struct monkey401 { - struct monkey401 *r_next, *r_prev; - uint32_t num; - lwc_string *host; /* Ignore */ - nserror (*cb)(bool,void*); - void *pw; + struct monkey401 *r_next, *r_prev; + uint32_t num; + lwc_string *host; /* Ignore */ + nserror (*cb)(bool,void*); + void *pw; } monkey401_t; static monkey401_t *m4_ring = NULL; @@ -37,19 +37,19 @@ static uint32_t m4_ctr = 0; void gui_401login_open(nsurl *url, const char *realm, nserror (*cb)(bool proceed, void *pw), void *cbpw) { - monkey401_t *m4t = calloc(sizeof(*m4t), 1); - if (m4t == NULL) { - cb(false, cbpw); - return; - } - m4t->cb = cb; - m4t->pw = cbpw; - m4t->num = m4_ctr++; + monkey401_t *m4t = calloc(sizeof(*m4t), 1); + if (m4t == NULL) { + cb(false, cbpw); + return; + } + m4t->cb = cb; + m4t->pw = cbpw; + m4t->num = m4_ctr++; - RING_INSERT(m4_ring, m4t); + RING_INSERT(m4_ring, m4t); - fprintf(stdout, "401LOGIN OPEN M4 %u URL %s REALM %s\n", - m4t->num, nsurl_access(url), realm); + fprintf(stdout, "401LOGIN OPEN M4 %u URL %s REALM %s\n", + m4t->num, nsurl_access(url), realm); } -- cgit v1.2.3