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...@worldgate.com> on 1998/09/16 18:59:09 UTC

ap_get_virthost_addr

unsigned long ap_get_virthost_addr(const char *w, unsigned short *ports)
[...]
    p = strchr(w, ':');
[...]
    if (p != NULL)
        *p = '\0';

Mmm?



Re: ap_get_virthost_addr

Posted by Marc Slemko <ma...@worldgate.com>.
On Wed, 16 Sep 1998, Dean Gaudet wrote:

> Bleh.
> 
> That's only used for bindaddress/listen isn't it?  The easiest fix is to
> just remove the "const" from w, it's not required.

Yea.

I just wish I had a compiler that was smart enough to tell me about it...

> 
> Dean
> 
> On Wed, 16 Sep 1998, Marc Slemko wrote:
> 
> > unsigned long ap_get_virthost_addr(const char *w, unsigned short *ports)
> > [...]
> >     p = strchr(w, ':');
> > [...]
> >     if (p != NULL)
> >         *p = '\0';
> > 
> > Mmm?
> > 
> > 
> > 
> 


Re: ap_get_virthost_addr

Posted by Dean Gaudet <dg...@arctic.org>.
Bleh.

That's only used for bindaddress/listen isn't it?  The easiest fix is to
just remove the "const" from w, it's not required.

Dean

On Wed, 16 Sep 1998, Marc Slemko wrote:

> unsigned long ap_get_virthost_addr(const char *w, unsigned short *ports)
> [...]
>     p = strchr(w, ':');
> [...]
>     if (p != NULL)
>         *p = '\0';
> 
> Mmm?
> 
> 
>