X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=list.c;h=6cd7f8915a9d1bfa58d8c0666a071ac324377347;hp=078723cc8dcab59e162f97f03fa13d29aa878fb3;hb=7f053ce26463d16866431d842bc5ed9cfbfa37e3;hpb=5f390b415777db21894f1b856ab3d21c9c24f7c6 diff --git a/list.c b/list.c index 078723cc..6cd7f891 100644 --- a/list.c +++ b/list.c @@ -1,4 +1,4 @@ -const char list_rcs[] = "$Id: list.c,v 1.11 2001/10/23 21:21:03 jongfoster Exp $"; +const char list_rcs[] = "$Id: list.c,v 1.14 2002/03/24 13:25:43 swa Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/list.c,v $ @@ -8,7 +8,7 @@ const char list_rcs[] = "$Id: list.c,v 1.11 2001/10/23 21:21:03 jongfoster Exp $ * `destroy_list', `enlist' and `list_to_text' * * Copyright : Written by and Copyright (C) 2001 the SourceForge - * IJBSWA team. http://ijbswa.sourceforge.net + * Privoxy team. http://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -34,6 +34,18 @@ const char list_rcs[] = "$Id: list.c,v 1.11 2001/10/23 21:21:03 jongfoster Exp $ * * Revisions : * $Log: list.c,v $ + * Revision 1.14 2002/03/24 13:25:43 swa + * name change related issues + * + * Revision 1.13 2002/03/07 03:46:17 oes + * Fixed compiler warnings + * + * Revision 1.12 2001/10/25 03:40:48 david__schmidt + * Change in porting tactics: OS/2's EMX porting layer doesn't allow multiple + * threads to call select() simultaneously. So, it's time to do a real, live, + * native OS/2 port. See defines for __EMX__ (the porting layer) vs. __OS2__ + * (native). Both versions will work, but using __OS2__ offers multi-threading. + * * Revision 1.11 2001/10/23 21:21:03 jongfoster * New error handling - error codes are now jb_errs, not ints. * Changed the way map() handles out-of-memory, to dramatically @@ -396,7 +408,7 @@ jb_err enlist_first(struct list *the_list, const char *str) * *********************************************************************/ jb_err enlist_unique(struct list *the_list, const char *str, - int num_significant_chars) + size_t num_significant_chars) { struct list_entry *cur_entry; @@ -404,7 +416,7 @@ jb_err enlist_unique(struct list *the_list, const char *str, assert(list_is_valid(the_list)); assert(str); assert(num_significant_chars >= 0); - assert((size_t)num_significant_chars <= strlen(str)); + assert(num_significant_chars <= strlen(str)); if (num_significant_chars > 0) { @@ -458,7 +470,7 @@ jb_err enlist_unique(struct list *the_list, const char *str, jb_err enlist_unique_header(struct list *the_list, const char *name, const char *value) { - int length; + size_t length; jb_err result; char *str; @@ -484,6 +496,7 @@ jb_err enlist_unique_header(struct list *the_list, const char *name, assert(list_is_valid(the_list)); return result; + } @@ -544,7 +557,7 @@ char *list_to_text(const struct list *the_list) struct list_entry *cur_entry; char *ret = NULL; char *s; - int size = 2; + size_t size = 2; assert(the_list); assert(list_is_valid(the_list));