diff options
author | Adrian Lees <adrian@aemulor.com> | 2005-10-01 23:27:22 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2005-10-01 23:27:22 +0000 |
commit | 8a88130630e288ff2fd854d980a1b639ab157e4d (patch) | |
tree | d109f490f0967b94bb02b8517914e04f0881e10e /content | |
parent | 7a81755bcab660d89db148453ac2194238961fb6 (diff) | |
download | netsurf-8a88130630e288ff2fd854d980a1b639ab157e4d.tar.gz netsurf-8a88130630e288ff2fd854d980a1b639ab157e4d.tar.bz2 |
[project @ 2005-10-01 23:27:22 by adrianl]
Pedantic corrections
svn path=/import/netsurf/; revision=1868
Diffstat (limited to 'content')
-rw-r--r-- | content/url_store.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/url_store.c b/content/url_store.c index 1c1900d7f..08bc834e2 100644 --- a/content/url_store.c +++ b/content/url_store.c @@ -84,7 +84,7 @@ static struct hostname_data *url_store_find_hostname(const char *url) { } /* no hostname is available: create a new one */ - result = calloc(sizeof(struct hostname_data), 1); + result = calloc(1, sizeof(struct hostname_data)); if (!result) return NULL; result->hostname = hostname; @@ -171,7 +171,7 @@ struct url_content *url_store_find(const char *url) { } /* no URL is available: create a new one */ - result = calloc(sizeof(struct url_data), 1); + result = calloc(1, sizeof(struct url_data)); if (!result) return NULL; result->data.url = malloc(url_length + 1); @@ -400,7 +400,7 @@ char *url_store_match_string(const char *text) { /** - * Loads the current contents of the URL store to disk + * Loads the current contents of the URL store from disk * * \param file the file to load options from */ @@ -461,7 +461,7 @@ void url_store_load(const char *file) { break; if (s[strlen(s) - 1] == '\n') s[strlen(s) - 1] = '\0'; - result = calloc(sizeof(struct url_data), 1); + result = calloc(1, sizeof(struct url_data)); if (!result) break; result->data.url_length = strlen(s); |