Ignore:
Timestamp:
May 31, 2019, 3:03:21 PM (5 years ago)
Author:
knut
Message:

Resolve certain string-related type conflicts, e.g., char* vs. const char* or char[N], that may cause errors in some build environments. Resolve a problem with the include order of fcgi_stdio.h (note: should verify that this harmonizes with resolution of same problem in trunk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/ulinet.c

    r899 r933  
    3232#include <assert.h>
    3333#include <ctype.h>
    34 #include "fcgi_stdio.h"
    3534
    3635/**
     
    270269char* getProvenance(maps* conf,const char* url){
    271270  map* sharedCache=getMapFromMaps(conf,"security","shared");
    272   char *res="OTHER";
    273   char *paths[2]={
     271  //char *res="OTHER";
     272  static char OTHER[] = "OTHER";
     273  static char SHARED[] = "SHARED";
     274  static char LOCAL[] = "LOCAL";
     275  const char *paths[2]={
    274276    "mapserverAddress",
    275277    "tmpUrl"
     
    280282    while(curs!=NULL){
    281283      if(strstr(url,curs)==NULL){
    282         return "SHARED";
     284        return SHARED;
    283285      }
    284286      curs=strtok(NULL,",");
     
    289291    if(sharedCache!=NULL){
    290292      if(strstr(url,sharedCache->value)!=NULL){
    291         return "LOCAL";
    292       }
    293     }
    294   }
    295   return res;
     293        return LOCAL;
     294      }
     295    }
     296  }
     297  //return res;
     298  return OTHER;
    296299}
    297300
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png