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 20:36:48 GMT
This one can be fixed with a union, but one is led to wonder why the "type"
isn't just an integer anyway. Anyone got any comments (before I change it to
be one)?

Cheers,

Ben.

> >*** apache_1.1.1/src/mod_dir.c	Fri Jun 21 22:12:07 1996
> >--- apache_1.1.1.pi4//src/mod_dir.c	Wed Jul 24 12:51:40 1996
> >***************
> >*** 176,182 ****
> >--- 176,186 ----
> >  }
> >
> >
> >+ #ifdef POINTER_IS_NOT_INT /* wm 23.Jul.96: shutup gcc on DigitalUnix */
> >+ char *add_opts_int(cmd_parms *cmd, void *d, long opts) {
> >+ #else
> >  char *add_opts_int(cmd_parms *cmd, void *d, int opts) {
> >+ #endif
> >      push_item(((dir_config_rec *)d)->opts_list, (char*)opts, NULL,
> >  	      cmd->path, NULL);
> >      return NULL;
> >***************
> >*** 384,390 ****
> >--- 388,398 ----
> >      return 0;
> >  }
> >
> >+ #ifdef POINTER_IS_NOT_INT /* wm 23.Jul.96: shutup gcc on DigitalUnix */
> >+ long find_opts(dir_config_rec *d, request_rec *r) {
> >+ #else
> >  int find_opts(dir_config_rec *d, request_rec *r) {
> >+ #endif
> >      char *path = r->filename;
> >      array_header *list = d->opts_list;
> >      struct item *items = (struct item *)list->elts;
> >***************
> >*** 394,400 ****
> >--- 402,412 ----
> >          struct item *p = &items[i];
> >
> >          if(!strcmp_match(path,p->apply_path))
> >+ #ifdef POINTER_IS_NOT_INT /* wm 23.Jul.96: shutup gcc on DigitalUnix */
> >+             return (long)p->type;
> >+ #else
> >              return (int)p->type;
> >+ #endif
> >      }
> >      return 0;
> >  }
> 
> 
> -- 
> Rob Hartill (robh@imdb.com)
> The Internet Movie Database (IMDb)  http://www.imdb.com/
>            ...more movie info than you can poke a stick at.

-- 
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