Like options, move the environ struct into environ.c.

This commit is contained in:
nicm
2015-10-28 09:51:55 +00:00
parent 44657bf932
commit bf9c933cae
19 changed files with 125 additions and 101 deletions

View File

@ -631,9 +631,9 @@ format_find(struct format_tree *ft, const char *key, int modifiers)
if (~modifiers & FORMAT_TIMESTRING) {
envent = NULL;
if (ft->s != NULL)
envent = environ_find(&ft->s->environ, key);
envent = environ_find(ft->s->environ, key);
if (envent == NULL)
envent = environ_find(&global_environ, key);
envent = environ_find(global_environ, key);
if (envent != NULL) {
found = envent->value;
goto found;