cosmetic -- fixed the tabs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1460 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -45,7 +45,7 @@ print_env(char *arg)
|
||||
|
||||
if (arg == NULL) {
|
||||
// print all environment 'key=value' pairs (one per line)
|
||||
while (*env)
|
||||
while (*env)
|
||||
printf("%s\n", *env++);
|
||||
|
||||
return 0;
|
||||
@@ -56,10 +56,10 @@ print_env(char *arg)
|
||||
int len = strlen(arg);
|
||||
bool found = false;
|
||||
|
||||
while ((s = *env++) != NULL)
|
||||
if (!strncmp(s, arg, len)) {
|
||||
char *p = strchr(s, '=');
|
||||
if (p) {
|
||||
while ((s = *env++) != NULL)
|
||||
if (!strncmp(s, arg, len)) {
|
||||
char *p = strchr(s, '=');
|
||||
if (p) {
|
||||
printf("%s\n", p+1);
|
||||
found = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user