From: Fabian Keil Date: Sat, 18 Aug 2007 14:34:27 +0000 (+0000) Subject: Make xtoi() extern so it can be used in pcrs.c. X-Git-Tag: v_3_0_7~171 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=926b68ecaaf8b1956127b10b2e3b0b8d91ef63a1 Make xtoi() extern so it can be used in pcrs.c. --- diff --git a/encode.c b/encode.c index f7c07bf7..b95ada80 100644 --- a/encode.c +++ b/encode.c @@ -1,4 +1,4 @@ -const char encode_rcs[] = "$Id: encode.c,v 1.11 2006/12/28 18:25:53 fabiankeil Exp $"; +const char encode_rcs[] = "$Id: encode.c,v 1.12 2007/08/04 10:15:51 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/encode.c,v $ @@ -33,6 +33,9 @@ const char encode_rcs[] = "$Id: encode.c,v 1.11 2006/12/28 18:25:53 fabiankeil E * * Revisions : * $Log: encode.c,v $ + * Revision 1.12 2007/08/04 10:15:51 fabiankeil + * Use strlcpy() instead of strcpy(). + * * Revision 1.11 2006/12/28 18:25:53 fabiankeil * Fixed gcc43 compiler warning. * @@ -426,7 +429,7 @@ static int xdtoi(const int d) * Returns : The integer value, or 0 for non-hex strings. * *********************************************************************/ -static int xtoi(const char *s) +int xtoi(const char *s) { int d1, d2; diff --git a/encode.h b/encode.h index ae91bbb8..c54645e3 100644 --- a/encode.h +++ b/encode.h @@ -1,9 +1,9 @@ #ifndef ENCODE_H_INCLUDED #define ENCODE_H_INCLUDED -#define ENCODE_H_VERSION "$Id: encode.h,v 1.5 2002/03/26 22:29:54 swa Exp $" +#define ENCODE_H_VERSION "$Id: encode.h,v 1.7 2006/07/18 14:48:45 david__schmidt Exp $" /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/Attic/encode.h,v $ + * File : $Source: /cvsroot/ijbswa/current/encode.h,v $ * * Purpose : Functions to encode and decode URLs, and also to * encode cookies and HTML text. @@ -35,6 +35,10 @@ * * Revisions : * $Log: encode.h,v $ + * Revision 1.7 2006/07/18 14:48:45 david__schmidt + * Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch) + * with what was really the latest development (the v_3_0_branch branch) + * * Revision 1.5 2002/03/26 22:29:54 swa * we have a new homepage! * @@ -65,7 +69,7 @@ extern char * html_encode(const char *s); extern char * cookie_encode(const char *s); extern char * url_encode(const char *s); extern char * url_decode(const char *str); - +extern int xtoi(const char *s); extern char * html_encode_and_free_original(char *s); /* Revision control strings from this header and associated .c file */