Change total_dot_number to unsigned int
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
3746ab24c7
commit
9cbcd21d8d
6
cookie.c
6
cookie.c
@@ -22,10 +22,10 @@ static int is_saved = 1;
|
|||||||
|
|
||||||
#define contain_no_dots(p, ep) (total_dot_number((p),(ep),1)==0)
|
#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)
|
total_dot_number(char *p, char *ep, int max_count)
|
||||||
{
|
{
|
||||||
int count = 0;
|
unsigned int count = 0;
|
||||||
if (!ep)
|
if (!ep)
|
||||||
ep = p + strlen(p);
|
ep = p + strlen(p);
|
||||||
|
|
||||||
@@ -325,7 +325,7 @@ add_cookie(ParsedURL *pu, Str name, Str value,
|
|||||||
|
|
||||||
if (version == 0) {
|
if (version == 0) {
|
||||||
/* [NETSCAPE] rule */
|
/* [NETSCAPE] rule */
|
||||||
int n = total_dot_number(domain->ptr,
|
unsigned int n = total_dot_number(domain->ptr,
|
||||||
domain->ptr + domain->length,
|
domain->ptr + domain->length,
|
||||||
3);
|
3);
|
||||||
if (n < 2) {
|
if (n < 2) {
|
||||||
|
Reference in New Issue
Block a user