diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-09 22:04:58 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-10 12:54:57 +0100 |
commit | fe9104096fd8de9f79338f750a13e0ddccf05429 (patch) | |
tree | 029e144c6035e7f8d6825a933691892c8f9b9726 /frontends/monkey/401login.c | |
parent | 7272b59458c02286e1d246ffa09de7386f0d942e (diff) | |
download | netsurf-fe9104096fd8de9f79338f750a13e0ddccf05429.tar.gz netsurf-fe9104096fd8de9f79338f750a13e0ddccf05429.tar.bz2 |
Reflow monkey code, it was annoying me too much
Diffstat (limited to 'frontends/monkey/401login.c')
-rw-r--r-- | frontends/monkey/401login.c | 32 |
1 files changed, 16 insertions, 16 deletions
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); } |