diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-26 23:15:13 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-26 23:15:13 -0700 |
commit | 4d0f9d2290bde45c0e844ce40f1caa7fb4baae0f (patch) | |
tree | e7b844ad0b4cbd50917278786cbd8b53f6d5a5de | |
parent | 933f0b2980b375cadc58b2ef5669bc34475a7be6 (diff) |
launchd: Brownbag fix string compare
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | launchd/console_redirect.c | 4 | ||||
-rw-r--r-- | launchd/user_startx/launchd_startx.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/launchd/console_redirect.c b/launchd/console_redirect.c index 2a758d1..d932dc3 100644 --- a/launchd/console_redirect.c +++ b/launchd/console_redirect.c @@ -226,9 +226,9 @@ int main(int argc, char **argv) { system("/bin/echo SYST OUT"); system("/bin/echo SYST ERR >&2"); fprintf(stdout, "TEST OUT3\n"); - fprintf(stdout, "TEST OUT4\n"); + fprintf(stdout, "TEST OUT4"); fprintf(stderr, "TEST ERR3\n"); - fprintf(stderr, "TEST ERR4\n"); + fprintf(stderr, "TEST ERR4"); exit(0); } diff --git a/launchd/user_startx/launchd_startx.c b/launchd/user_startx/launchd_startx.c index cf93227..41d1511 100644 --- a/launchd/user_startx/launchd_startx.c +++ b/launchd/user_startx/launchd_startx.c @@ -43,7 +43,7 @@ int main(int argc, char **argv, char **envp) { pid_t child; int pstat; - if(argc < 2 || strcmp(argv[1], "--help")) { + if(argc < 2 || strcmp(argv[1], "--help") == 0) { fprintf(stderr, "Usage: %s prog [args...]\n", argv[0]); exit(EXIT_FAILURE); } |