From: oes <oes@users.sourceforge.net>
Date: Fri, 8 Mar 2002 13:47:12 +0000 (+0000)
Subject: Cosmetics
X-Git-Tag: v_2_9_12~111
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/developer-manual/@default-cgi@toggle?a=commitdiff_plain;h=b453328a588377d4beb2e48adaa2f9de1d0dbc59;p=privoxy.git

Cosmetics
---

diff --git a/doc/pcrs.3 b/doc/pcrs.3
index d5d20220..2a96d5a0 100644
--- a/doc/pcrs.3
+++ b/doc/pcrs.3
@@ -17,15 +17,15 @@
 .\"
 .\" You should have received a copy of the GNU General Public
 .\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+.\" MA 02111, USA.
 .\"
-.TH PCRS 3 "4 March 2002"
+.TH PCRS 3 "4 March 2002" "pcrs-0.0.1"
 .SH NAME
 pcrs - Perl-compatible regular substitution.
 .SH SYNOPSIS
 .br
-.BI "#include <pcrs.h>"
+.B "#include <pcrs.h>"
 .PP
 .br
 .BI "pcrs_job *pcrs_compile(const char *" pattern "," 
@@ -405,7 +405,8 @@ int main(int Argc, char **Argv)
 {
    pcrs_job *job;
    char *result;
-   int newsize, err;
+   size_t newsize;
+   int err;
 
    if (Argc != 3)
    {
@@ -415,12 +416,12 @@ int main(int Argc, char **Argv)
 
    if (NULL == (job = pcrs_compile_command(Argv[1], &err)))
    {
-      printf("Compile error:  %s (%d).\\n", pcrs_strerror(err), err);
+      fprintf(stderr, "%s: compile error:  %s (%d).\\n", Argv[0], pcrs_strerror(err), err);
    }
 
    if (0 > (err = pcrs_execute(job, Argv[2], strlen(Argv[2]) + 1, &result, &newsize)))
    {
-      printf("Exec error:  %s (%d).\\n", pcrs_strerror(err), err);
+      fprintf(stderr, "%s: Exec error:  %s (%d).\\n", Argv[0], pcrs_strerror(err), err);
    }
    else
    {