-/* $Id: errorpage.cc,v 1.17 1996/04/11 04:47:20 wessels Exp $ */
+/* $Id: errorpage.cc,v 1.18 1996/04/11 04:48:08 wessels Exp $ */
/* DEBUG: Section 4 cached_error: Error printing routines */
return tmp_error_buf;
}
-char *access_denied_msg (code, method, url, client)
- int code;
- int method;
- char *url;
- char *client;
+char *access_denied_msg(code, method, url, client)
+ int code;
+ int method;
+ char *url;
+ char *client;
{
- sprintf(tmp_error_buf, "\
+ sprintf(tmp_error_buf, "\
HTTP/1.0 %d Access Denied\r\n\
Content-type: text/html\r\n\
\r\n\
url,
version_string,
getMyHostname());
- return tmp_error_buf;
+ return tmp_error_buf;
}
-/* $Id: stat.cc,v 1.20 1996/04/11 04:47:25 wessels Exp $ */
+/* $Id: stat.cc,v 1.21 1996/04/11 04:48:09 wessels Exp $ */
/*
* DEBUG: Section 18 stat
}
int proto_default_port(p)
- protocol_t p;
+ protocol_t p;
{
- switch(p) {
- case PROTO_HTTP:
- return 80;
- case PROTO_FTP:
- return 21;
- case PROTO_GOPHER:
- return 70;
- case PROTO_CACHEOBJ:
- return CACHE_HTTP_PORT;
- default:
- return 0;
- }
+ switch (p) {
+ case PROTO_HTTP:
+ return 80;
+ case PROTO_FTP:
+ return 21;
+ case PROTO_GOPHER:
+ return 70;
+ case PROTO_CACHEOBJ:
+ return CACHE_HTTP_PORT;
+ default:
+ return 0;
+ }
}