/*
- * $Id: acl.cc,v 1.132 1998/02/03 04:21:11 wessels Exp $
+ * $Id: acl.cc,v 1.133 1998/02/04 07:22:13 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
passwd = strtok(NULL, "\n");
debug(28, 5) ("aclReadProxyAuth: adding new passwords to hash table\n");
while (user != NULL) {
- if ((int)strlen(user) > 1 && passwd && (int) strlen(passwd) > 1) {
+ if ((int) strlen(user) > 1 && passwd && (int) strlen(passwd) > 1) {
debug(28, 6) ("aclReadProxyAuth: adding %s, %s to hash table\n", user, passwd);
hash_insert(p->hash, xstrdup(user), (void *) xstrdup(passwd));
}
+
/*
- * $Id: client.cc,v 1.50 1998/02/02 21:16:18 wessels Exp $
+ * $Id: client.cc,v 1.51 1998/02/04 07:22:15 wessels Exp $
*
* DEBUG: section 0 WWW Client
* AUTHOR: Harvest Derived
/*
- * $Id: client_side.cc,v 1.203 1998/02/03 04:21:12 wessels Exp $
+ * $Id: client_side.cc,v 1.204 1998/02/04 07:22:16 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
http->http_code = HTTP_OK;
}
msg = httpReplyHeader(1.0, http->http_code, NULL, 0, 0, -1);
- if ((int)strlen(msg) < 8190)
+ if ((int) strlen(msg) < 8190)
strcat(msg, "\r\n");
comm_write(fd, xstrdup(msg), strlen(msg), clientWriteComplete, http, xfree);
}
/*
- * $Id: ftp.cc,v 1.190 1998/02/03 04:21:14 wessels Exp $
+ * $Id: ftp.cc,v 1.191 1998/02/04 07:22:18 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
size_t width = Config.Ftp.list_width;
ftpListParts *parts;
int flags = ftpState->flags;
- if ((int)strlen(line) > 1024) {
+ if ((int) strlen(line) > 1024) {
snprintf(html, 8192, "%s\n", line);
return html;
}
ftpSendPort(ftpState);
return;
}
- if ((int)strlen(buf) > 1024) {
+ if ((int) strlen(buf) > 1024) {
debug(9, 1) ("ftpReadPasv: Avoiding potential buffer overflow\n");
ftpSendPort(ftpState);
return;
if (request->port != urlDefaultPort(request->protocol))
snprintf(portbuf, 32, ":%d", request->port);
loginbuf[0] = '\0';
- if ((int)strlen(request->login) > 0) {
+ if ((int) strlen(request->login) > 0) {
strcpy(loginbuf, request->login);
if ((t = strchr(loginbuf, ':')))
*t = '\0';
/*
- * $Id: http.cc,v 1.235 1998/02/03 04:21:15 wessels Exp $
+ * $Id: http.cc,v 1.236 1998/02/04 07:22:20 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
EBIT_SET(cc_flags, CCC_MAXAGE);
} else if (strncasecmp(xbuf, "Via:", 4) == 0) {
for (s = xbuf + 4; *s && isspace(*s); s++);
- if ((int)strlen(viabuf) + (int)strlen(s) < 4000)
+ if ((int) strlen(viabuf) + (int) strlen(s) < 4000)
strcat(viabuf, s);
strcat(viabuf, ", ");
continue;
} else if (strncasecmp(xbuf, "X-Forwarded-For:", 16) == 0) {
for (s = xbuf + 16; *s && isspace(*s); s++);
- if ((int)strlen(fwdbuf) + (int)strlen(s) < 4000)
+ if ((int) strlen(fwdbuf) + (int) strlen(s) < 4000)
strcat(fwdbuf, s);
strcat(fwdbuf, ", ");
continue;