diff options
author | 2007-09-29 07:32:27 +1000 | |
---|---|---|
committer | 2007-09-29 07:32:27 +1000 | |
commit | 0e716763d80f56f6cb80ad9b673af8fff9296a95 (patch) | |
tree | e2042eddc8052c4f218cdc8dd0c8c883aade7662 /env.c | |
parent | 50f5941a8234d2224bf3c74403c554cca6224b0e (diff) |
Replace variadic functions like sb_append and contains_str with variadic macros without a sentinel.
darcs-hash:20070928213227-75c98-2e7b06242acfd5fd0bf02ce77c41d52374f2363a.gz
Diffstat (limited to 'env.c')
-rw-r--r-- | env.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -466,7 +466,7 @@ static void setup_path() sb_append( &b, path ); } - sb_append2( &b, + sb_append( &b, ARRAY_SEP_STR, path_el[j], (void *)0 ); @@ -713,7 +713,7 @@ int env_set( const wchar_t *key, CHECK( key, ENV_INVALID ); - if( val && CONTAINS( key, L"PWD", L"HOME" ) ) + if( val && contains( key, L"PWD", L"HOME" ) ) { void *context = halloc( 0, 0 ); const wchar_t *val_canonical = path_make_canonical( context, val ); |