-const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.2 2002/01/21 00:14:09 jongfoster Exp $";
+const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.4 2002/03/07 03:46:17 oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $
*
* Revisions :
* $Log: urlmatch.c,v $
+ * Revision 1.4 2002/03/07 03:46:17 oes
+ * Fixed compiler warnings
+ *
+ * Revision 1.3 2002/03/03 14:51:11 oes
+ * Fixed CLF logging: Added ocmd member for client's request to struct http_request
+ *
* Revision 1.2 2002/01/21 00:14:09 jongfoster
* Correcting comment style
* Fixing an uninitialized memory bug in create_url_spec()
*/
{
char *vec[BUFFER_SIZE];
- int size;
+ size_t size;
char *p;
http->dbuffer = strdup(http->host);
return JB_ERR_MEMORY;
}
- if ((p = strchr(buf, '/')))
+ if ((p = strchr(buf, '/')) != NULL)
{
if (NULL == (url->path = strdup(p)))
{
if (buf[0] != '\0')
{
char *v[150];
- int size;
+ size_t size;
/* Parse domain part */
if (buf[strlen(buf) - 1] == '.')