You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/02/17 11:36:46 UTC
[PATCH] more rfc931 and cleanup
The below patch removes two unused functions from util.c and updates a
comment about rfc931 in httpd.h.. Yes, it is getting late to be making
changes without reason, yes they are just cleanup, so feel free to veto if
you want.
Index: util.c
===================================================================
RCS file: /export/home/cvs/apache/src/util.c,v
retrieving revision 1.42
diff -c -r1.42 util.c
*** util.c 1997/02/04 23:54:24 1.42
--- util.c 1997/02/17 10:34:01
***************
*** 884,910 ****
return x;
}
- #ifdef NOTDEF
-
- void escape_url(char *url) {
- register int x,y;
- register char digit;
- char *copy;
-
- copy = strdup(url);
-
- for(x=0,y=0;copy[x];x++,y++) {
- if(ind("% ?+&",url[y] = copy[x]) != -1) {
- c2x(copy[x],&url[y]);
- y+=2;
- }
- }
- url[y] = '\0';
- free(copy);
- }
-
- #endif
-
int is_directory(const char *path) {
struct stat finfo;
--- 884,889 ----
***************
*** 1190,1221 ****
return ((struct in_addr *)(hep->h_addr))->s_addr;
}
-
- #ifdef NOTDEF
-
- char *get_remote_logname(FILE *fd) {
- int len;
- char *result;
- #if defined(NEXT) || defined(BSD4_4) || defined(SOLARIS2) || defined(LINUX) || defined(__EMX__)
- struct sockaddr sa_server, sa_client;
- #else
- struct sockaddr_in sa_server,sa_client;
- #endif
-
- len = sizeof(sa_client);
- if(getpeername(fileno(stdout),&sa_client,&len) != -1) {
- len = sizeof(sa_server);
- if(getsockname(fileno(stdout),&sa_server,&len) == -1)
- result = "unknown";
- else
- result = rfc931((struct sockaddr_in *) & sa_client,
- (struct sockaddr_in *) & sa_server);
- }
- else result = "unknown";
-
- return result; /* robm=pinhead */
- }
- #endif
static char *find_fqdn(pool *a, struct hostent *p) {
int x;
--- 1169,1174 ----
Index: httpd.h
===================================================================
RCS file: /export/home/cvs/apache/src/httpd.h,v
retrieving revision 1.87
diff -c -r1.87 httpd.h
*** httpd.h 1997/02/16 22:59:04 1.87
--- httpd.h 1997/02/17 10:34:02
***************
*** 535,541 ****
* "" if it has and no address was found.
* N.B. Only access this though
* get_remote_host() */
! char *remote_logname; /* Only ever set if doing_rfc931
* N.B. Only access this through
* get_remote_logname() */
char *user; /* If an authentication check was made,
--- 535,541 ----
* "" if it has and no address was found.
* N.B. Only access this though
* get_remote_host() */
! char *remote_logname; /* Only ever set if doing rfc1413 lookups.
* N.B. Only access this through
* get_remote_logname() */
char *user; /* If an authentication check was made,
Re: [PATCH] more rfc931 and cleanup
Posted by Chuck Murcko <ch...@topsail.org>.
Marc Slemko wrote:
>
> The below patch removes two unused functions from util.c and updates a
> comment about rfc931 in httpd.h.. Yes, it is getting late to be making
> changes without reason, yes they are just cleanup, so feel free to veto if
> you want.
>
Cleanup != feature. +1.
--
chuck
Chuck Murcko
The Topsail Group, West Chester PA USA
chuck@topsail.org