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/cert.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/cert.c')
-rw-r--r-- | frontends/monkey/cert.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/frontends/monkey/cert.c b/frontends/monkey/cert.c index 710e71098..a19975527 100644 --- a/frontends/monkey/cert.c +++ b/frontends/monkey/cert.c @@ -25,11 +25,11 @@ #include "monkey/cert.h" typedef struct monkey_cert { - struct monkey_cert *r_next, *r_prev; - uint32_t num; - char *host; /* Ignore */ - nserror (*cb)(bool,void*); - void *pw; + struct monkey_cert *r_next, *r_prev; + uint32_t num; + char *host; /* Ignore */ + nserror (*cb)(bool,void*); + void *pw; } monkey_cert_t; static monkey_cert_t *cert_ring = NULL; @@ -40,20 +40,20 @@ gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs, unsigned long num, nserror (*cb)(bool proceed, void *pw), void *cbpw) { - monkey_cert_t *m4t = calloc(sizeof(*m4t), 1); - if (m4t == NULL) { - return NSERROR_NOMEM; - } - m4t->cb = cb; - m4t->pw = cbpw; - m4t->num = cert_ctr++; + monkey_cert_t *m4t = calloc(sizeof(*m4t), 1); + if (m4t == NULL) { + return NSERROR_NOMEM; + } + m4t->cb = cb; + m4t->pw = cbpw; + m4t->num = cert_ctr++; - RING_INSERT(cert_ring, m4t); + RING_INSERT(cert_ring, m4t); - fprintf(stdout, "SSLCERT VERIFY CERT %u URL %s\n", - m4t->num, nsurl_access(url)); + fprintf(stdout, "SSLCERT VERIFY CERT %u URL %s\n", + m4t->num, nsurl_access(url)); - return NSERROR_OK; + return NSERROR_OK; } |