add casting from size_t to int for printf()
authorsteudten <steudten@users.sourceforge.net>
Thu, 20 Sep 2001 15:45:25 +0000 (15:45 +0000)
committersteudten <steudten@users.sourceforge.net>
Thu, 20 Sep 2001 15:45:25 +0000 (15:45 +0000)
remove local variable shadow s2

parsers.c

index 8b0a891..50539f0 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.25 2001/09/16 13:21:27 jongfoster Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.26 2001/09/16 17:05:14 jongfoster Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -41,6 +41,9 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.25 2001/09/16 13:21:27 jongfoster
  *
  * Revisions   :
  *    $Log: parsers.c,v $
+ *    Revision 1.26  2001/09/16 17:05:14  jongfoster
+ *    Removing unused #include showarg.h
+ *
  *    Revision 1.25  2001/09/16 13:21:27  jongfoster
  *    Changes to use new list functions.
  *
@@ -781,9 +784,9 @@ char *content_length(const struct parsers *v, const char *s, struct client_state
    if (csp->content_length != 0) /* Content has been modified */
    {
       char * s2 = (char *) zalloc(100);
-      sprintf(s2, "Content-Length: %d", csp->content_length);
+      sprintf(s2, "Content-Length: %d", (int) csp->content_length);
 
-         log_error(LOG_LEVEL_HEADER, "Adjust Content-Length to %d", csp->content_length);
+         log_error(LOG_LEVEL_HEADER, "Adjust Content-Length to %d", (int) csp->content_length);
       return(s2);
    }
    else
@@ -870,13 +873,13 @@ char *client_referrer(const struct parsers *v, const char *s, struct client_stat
       /*
        * We have a specific (fixed) referer we want to send.
        */
-      char * s2;
+      char * s3;
 
       log_error(LOG_LEVEL_HEADER, "modified");
 
-      s2 = strsav( NULL, "Referer: " );
-      s2 = strsav( s2, newval );
-      return(s2);
+      s3 = strsav( NULL, "Referer: " );
+      s3 = strsav( s3, newval );
+      return(s3);
    }
 
    /* Should never get here! */