diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-11-03 15:12:27 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-11-03 15:12:50 +0000 |
commit | 6ff3238825f21e0abec37b1d485318648d824cab (patch) | |
tree | 489406862f83738f0304d364666096fccc5cf610 /frontends/monkey/401login.c | |
parent | 4fcb6eb3016de68b4a742cd6b4d2248550529deb (diff) | |
download | netsurf-6ff3238825f21e0abec37b1d485318648d824cab.tar.gz netsurf-6ff3238825f21e0abec37b1d485318648d824cab.tar.bz2 |
centralise monkey output generation
Diffstat (limited to 'frontends/monkey/401login.c')
-rw-r--r-- | frontends/monkey/401login.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/frontends/monkey/401login.c b/frontends/monkey/401login.c index 58335dd7b..76550d86c 100644 --- a/frontends/monkey/401login.c +++ b/frontends/monkey/401login.c @@ -21,6 +21,7 @@ #include <stdlib.h> #include <stdio.h> +#include "monkey/output.h" #include "monkey/401login.h" typedef struct monkey401 { @@ -34,12 +35,16 @@ typedef struct monkey401 { static monkey401_t *m4_ring = NULL; static uint32_t m4_ctr = 0; -nserror gui_401login_open(nsurl *url, const char *realm, - const char *username, const char *password, - nserror (*cb)(const char *username, + +nserror +gui_401login_open(nsurl *url, + const char *realm, + const char *username, + const char *password, + nserror (*cb)(const char *username, const char *password, void *pw), - void *cbpw) + void *cbpw) { monkey401_t *m4t = calloc(sizeof(*m4t), 1); if (m4t == NULL) { @@ -51,7 +56,7 @@ nserror gui_401login_open(nsurl *url, const char *realm, RING_INSERT(m4_ring, m4t); - fprintf(stdout, "401LOGIN OPEN M4 %u URL %s REALM %s\n", + moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s REALM %s", m4t->num, nsurl_access(url), realm); return NSERROR_OK; |