aboutsummaryrefslogtreecommitdiffstats
path: root/cookie.c
diff options
context:
space:
mode:
authorDavid Crosby <dave@dafyddcrosby.com>2015-07-01 05:10:29 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-08-11 12:59:26 +0000
commit9cbcd21d8d845f3bd3ecf1485e0e6ca5c9e891dc (patch)
treee171f1e163db8dd4a9e69c91db5132f13579e1c6 /cookie.c
parentFree tmp (diff)
downloadw3m-9cbcd21d8d845f3bd3ecf1485e0e6ca5c9e891dc.tar.gz
w3m-9cbcd21d8d845f3bd3ecf1485e0e6ca5c9e891dc.zip
Change total_dot_number to unsigned int
Diffstat (limited to '')
-rw-r--r--cookie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cookie.c b/cookie.c
index b7ea016..cd0c38c 100644
--- a/cookie.c
+++ b/cookie.c
@@ -22,10 +22,10 @@ static int is_saved = 1;
#define contain_no_dots(p, ep) (total_dot_number((p),(ep),1)==0)
-static int
+static unsigned int
total_dot_number(char *p, char *ep, int max_count)
{
- int count = 0;
+ unsigned int count = 0;
if (!ep)
ep = p + strlen(p);
@@ -325,7 +325,7 @@ add_cookie(ParsedURL *pu, Str name, Str value,
if (version == 0) {
/* [NETSCAPE] rule */
- int n = total_dot_number(domain->ptr,
+ unsigned int n = total_dot_number(domain->ptr,
domain->ptr + domain->length,
3);
if (n < 2) {