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) {
|
if (arg == NULL) {
|
||||||
// print all environment 'key=value' pairs (one per line)
|
// print all environment 'key=value' pairs (one per line)
|
||||||
while (*env)
|
while (*env)
|
||||||
printf("%s\n", *env++);
|
printf("%s\n", *env++);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -56,10 +56,10 @@ print_env(char *arg)
|
|||||||
int len = strlen(arg);
|
int len = strlen(arg);
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
while ((s = *env++) != NULL)
|
while ((s = *env++) != NULL)
|
||||||
if (!strncmp(s, arg, len)) {
|
if (!strncmp(s, arg, len)) {
|
||||||
char *p = strchr(s, '=');
|
char *p = strchr(s, '=');
|
||||||
if (p) {
|
if (p) {
|
||||||
printf("%s\n", p+1);
|
printf("%s\n", p+1);
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user