chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] sync with latest version of klibc (0.107)
[elogind.git]
/
klibc
/
klibc
/
tests
/
environ.c
diff --git
a/klibc/klibc/tests/getenvtest.c
b/klibc/klibc/tests/environ.c
similarity index 72%
rename from
klibc/klibc/tests/getenvtest.c
rename to
klibc/klibc/tests/environ.c
index 07cac0cef79690f04ac4f957de91e3b1634cc16c..6eeeb9197e91fba4dc678899f29c4e8d0d256a52 100644
(file)
--- a/
klibc/klibc/tests/getenvtest.c
+++ b/
klibc/klibc/tests/environ.c
@@
-17,10
+17,8
@@
int main(int argc, char *argv[], char *envp[])
}
/* Test environ */
}
/* Test environ */
- printf("PATH = %s\n", getenv("PATH"));
- printf("HOME = %s\n", getenv("HOME"));
- printf("TERM = %s\n", getenv("TERM"));
- printf("USER = %s\n", getenv("USER"));
+ for ( i = 0 ; envp[i] ; i++ )
+ printf("%s\n", envp[i]);
return 0;
}
return 0;
}