httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: apache-1.1.1/DigitalUnix/gcc-2.7.2
Date Wed, 24 Jul 1996 18:39:15 GMT
> > >      /* This one's pretty generic... */
> > >
> > >+ #ifdef POINTER_IS_NOT_INT /* wm 23.Jul.96: shutup gcc on DigitalUnix */
> > >+     long offset = (long)cmd->info;
> > >+ #else
> > >      int offset = (int)cmd->info;
> > >+ #endif
> > >      *(char **)(struct_ptr + offset) = pstrdup (cmd->pool, arg);
> > >      return NULL;
> > >  }

Hmmm ... this one isn't actually fixable with unions (because you can't
initialize a union). However, two "universal" fixes occur to me:

	int offset=(int)(long)cmd->info;

or

	long offset=(long)cmd->info.

Thoughts?

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message