diff -r 4e6e812c1d97 -r 069c152f6272 src/server/util/pblock.cpp --- a/src/server/util/pblock.cpp Thu Jun 20 14:07:46 2013 +0200 +++ b/src/server/util/pblock.cpp Fri Jun 21 12:10:44 2013 +0200 @@ -333,7 +333,7 @@ /* Check to see if name corresponds to a pb_key */ CListConstIterator iter(&_hashKeys.Find(hashval)); const pb_key *key; - while (key = ++iter) { + while((key = ++iter)) { if (key->hashval == hashval && !strcmp(key->name, name)) return key; } @@ -1127,7 +1127,7 @@ /* ---------------------------- pblock_pb2env ----------------------------- */ -/* + NSAPI_PUBLIC char **pblock_pb2env(const pblock *pb, char **env) { PListStruct_t *pl = PBTOPL(pb); @@ -1138,13 +1138,15 @@ int pos; /* Find out how many there are. */ - /* + ppval = (PLValueStruct_t **)(pl->pl_ppval); for (i = 0, nval = 0; i < pl->pl_initpi; ++i) { if (ppval[i]) ++nval; } - + + // TODO: implement util_env_create and util_env_str + /* env = util_env_create(env, nval, &pos); for (i = 0; i < pl->pl_initpi; ++i) { @@ -1154,10 +1156,11 @@ } } env[pos] = NULL; + */ return env; } -*/ + /* ---------------------------- pblock_replace ---------------------------- */