-const char parsers_rcs[] = "$Id: parsers.c,v 1.27 2001/09/20 15:45:25 steudten Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.28 2001/09/22 16:32:28 jongfoster Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
*
* Revisions :
* $Log: parsers.c,v $
+ * Revision 1.28 2001/09/22 16:32:28 jongfoster
+ * Removing unused #includes.
+ *
* Revision 1.27 2001/09/20 15:45:25 steudten
*
* add casting from size_t to int for printf()
#include "config.h"
-#ifndef _WIN32\r
+#ifndef _WIN32
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <ctype.h>
-#endif\r
-\r
+#endif
+
#include <string.h>
#ifndef _WIN32
log_error(LOG_LEVEL_HEADER, "addh: %s", p);
enlist(csp->headers, p);
+ freez(p);
}
*********************************************************************/
void connection_close_adder(struct client_state *csp)
{
- enlist(csp->headers, strdup("Connection: close"));
-
+ enlist(csp->headers, "Connection: close");
}
char *cleanhost = strdup(s);
if(csp->force)
+ {
strclean(cleanhost, FORCE_PREFIX);
+ }
return(cleanhost);
}