From: jongfoster Date: Sun, 16 Sep 2001 17:30:24 +0000 (+0000) Subject: Fixing a compiler warning. X-Git-Tag: v_2_9_9~69 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=20b6fe1c584e105f529d0fc92c02d62c214a29d3 Fixing a compiler warning. --- diff --git a/list.c b/list.c index 030f0b80..0625e660 100644 --- a/list.c +++ b/list.c @@ -1,4 +1,4 @@ -const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $"; +const char list_rcs[] = "$Id: list.c,v 1.9 2001/09/16 13:20:29 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/list.c,v $ @@ -34,6 +34,11 @@ const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $"; * * Revisions : * $Log: list.c,v $ + * Revision 1.9 2001/09/16 13:20:29 jongfoster + * Rewrite of list library. Now has seperate header and list_entry + * structures. Also added a large sprinking of assert()s to the list + * code. + * * Revision 1.8 2001/08/07 14:00:20 oes * Fixed comment * @@ -86,10 +91,15 @@ const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $"; #include "config.h" +#ifndef _WIN32 +/* FIXME: The following headers are not needed for Win32. Are they + * needed on other platforms? + */ #include #include #include #include +#endif #include #ifndef _WIN32 @@ -99,13 +109,15 @@ const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $"; #include #include "project.h" -#include "jcc.h" #include "list.h" #include "miscutil.h" const char list_h_rcs[] = LIST_H_VERSION; +static int list_is_valid (const struct list *the_list); + + /********************************************************************* * * Function : list_init diff --git a/list.h b/list.h index 1c66c4af..edb4ded4 100644 --- a/list.h +++ b/list.h @@ -1,6 +1,6 @@ #ifndef LIST_H_INCLUDED #define LIST_H_INCLUDED -#define LIST_H_VERSION "$Id: list.h,v 1.6 2001/08/05 16:06:20 jongfoster Exp $" +#define LIST_H_VERSION "$Id: list.h,v 1.7 2001/09/16 13:20:29 jongfoster Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/list.h,v $ @@ -36,6 +36,11 @@ * * Revisions : * $Log: list.h,v $ + * Revision 1.7 2001/09/16 13:20:29 jongfoster + * Rewrite of list library. Now has seperate header and list_entry + * structures. Also added a large sprinking of assert()s to the list + * code. + * * Revision 1.6 2001/08/05 16:06:20 jongfoster * Modifiying "struct map" so that there are now separate header and * "map_entry" structures. This means that functions which modify a @@ -94,8 +99,6 @@ extern "C" { extern void init_list (struct list *the_list); extern void destroy_list (struct list *the_list); -extern int list_is_valid(const struct list *the_list); - extern int enlist (struct list *the_list, const char *str); extern int enlist_unique (struct list *the_list, const char *str, int num_significant_chars); extern int enlist_unique_header (struct list *the_list, const char *name, const char *value);