httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-1.3/src/main util_uri.c
Date Sun, 05 Jul 1998 14:21:22 GMT
ben         98/07/05 07:21:21

  Modified:    src/include util_uri.h
               src/main util_uri.c
  Log:
  Another minor constification.
  
  Revision  Changes    Path
  1.9       +1 -1      apache-1.3/src/include/util_uri.h
  
  Index: util_uri.h
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/include/util_uri.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- util_uri.h	1998/05/03 17:31:11	1.8
  +++ util_uri.h	1998/07/05 14:21:17	1.9
  @@ -111,7 +111,7 @@
   /* util_uri.c */
   API_EXPORT(unsigned short) ap_default_port_for_scheme(const char *scheme_str);
   API_EXPORT(unsigned short) ap_default_port_for_request(const request_rec *r);
  -API_EXPORT(struct hostent *) ap_pduphostent(pool *p, struct hostent *hp);
  +API_EXPORT(struct hostent *) ap_pduphostent(pool *p, const struct hostent *hp);
   API_EXPORT(struct hostent *) ap_pgethostbyname(pool *p, const char *hostname);
   API_EXPORT(char *) ap_unparse_uri_components(pool *p, const uri_components *uptr,
       unsigned flags);
  
  
  
  1.21      +2 -2      apache-1.3/src/main/util_uri.c
  
  Index: util_uri.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/util_uri.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- util_uri.c	1998/05/30 01:54:30	1.20
  +++ util_uri.c	1998/07/05 14:21:18	1.21
  @@ -102,7 +102,7 @@
    * from a call to gethostbyname() and lives in static storage.
    * By creating a copy we can tuck it away for later use.
    */
  -API_EXPORT(struct hostent *) ap_pduphostent(pool *p, struct hostent *hp)
  +API_EXPORT(struct hostent *) ap_pduphostent(pool *p, const struct hostent *hp)
   {
       struct hostent *newent;
       char	  **ptrs;
  @@ -111,7 +111,7 @@
       int		   i = 0, j = 0;
   
       if (hp == NULL)
  -	return hp;
  +	return NULL;
   
       /* Count number of alias entries */
       if (hp->h_aliases != NULL)
  
  
  

Mime
View raw message