summaryrefslogtreecommitdiff
path: root/desktop/loginlist.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-03-02 18:02:41 +0000
committerJames Bursa <james@netsurf-browser.org>2004-03-02 18:02:41 +0000
commit1c85bf04293cfba663c5170bbe762825b7e72af1 (patch)
tree6db0b94b8e875ae20514b334c9f9acb3b380f362 /desktop/loginlist.c
parent2d816dda237a80f413a9d90031c7f5aff01e7a83 (diff)
downloadnetsurf-1c85bf04293cfba663c5170bbe762825b7e72af1.tar.gz
netsurf-1c85bf04293cfba663c5170bbe762825b7e72af1.tar.bz2
[project @ 2004-03-02 18:02:17 by bursa]
Add new url functions and modify to use them. svn path=/import/netsurf/; revision=578
Diffstat (limited to 'desktop/loginlist.c')
-rw-r--r--desktop/loginlist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/loginlist.c b/desktop/loginlist.c
index 45d4c0684..85f9e995e 100644
--- a/desktop/loginlist.c
+++ b/desktop/loginlist.c
@@ -12,6 +12,7 @@
#include "netsurf/utils/config.h"
#include "netsurf/desktop/401login.h"
#include "netsurf/utils/log.h"
+#include "netsurf/utils/url.h"
#include "netsurf/utils/utils.h"
#ifdef WITH_AUTH
@@ -30,7 +31,7 @@ static struct login *loginlist = &login;
void login_list_add(char *host, char* logindets) {
struct login *nli = xcalloc(1, sizeof(*nli));
- char *temp = get_host_from_url(host);
+ char *temp = url_host(host);
char *i;
assert(temp);
@@ -81,7 +82,7 @@ struct login *login_list_get(char *host) {
(strncasecmp(host, "https://", 8) != 0))
return NULL;
- temphost = get_host_from_url(host);
+ temphost = url_host(host);
assert(temphost);
temp = xstrdup(host);
@@ -89,7 +90,7 @@ struct login *login_list_get(char *host) {
* So make sure we've got that at least
*/
if (strlen(temphost) > strlen(temp)) {
- temp = get_host_from_url(host);
+ temp = url_host(host);
assert(temp);
}