projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dab174
)
Fixed error handling and TRUE/FALSE usage.
author
Matt Kraai
<kraai@debian.org>
Wed, 25 Oct 2000 19:09:03 +0000
(19:09 -0000)
committer
Matt Kraai
<kraai@debian.org>
Wed, 25 Oct 2000 19:09:03 +0000
(19:09 -0000)
coreutils/whoami.c
patch
|
blob
|
history
whoami.c
patch
|
blob
|
history
diff --git
a/coreutils/whoami.c
b/coreutils/whoami.c
index f3c21b3f5a89886b49fee8ca2d219afa2fe81774..44fbc950bc9a38b0a2ece33ec488e523c8fd93e5 100644
(file)
--- a/
coreutils/whoami.c
+++ b/
coreutils/whoami.c
@@
-35,8
+35,7
@@
extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
-
exit(TRUE)
;
+
return EXIT_SUCCESS
;
}
- errorMsg("cannot find username for UID %u\n", (unsigned) uid);
- return(FALSE);
+ fatalError("cannot find username for UID %u\n", (unsigned) uid);
}
diff --git
a/whoami.c
b/whoami.c
index f3c21b3f5a89886b49fee8ca2d219afa2fe81774..44fbc950bc9a38b0a2ece33ec488e523c8fd93e5 100644
(file)
--- a/
whoami.c
+++ b/
whoami.c
@@
-35,8
+35,7
@@
extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
-
exit(TRUE)
;
+
return EXIT_SUCCESS
;
}
- errorMsg("cannot find username for UID %u\n", (unsigned) uid);
- return(FALSE);
+ fatalError("cannot find username for UID %u\n", (unsigned) uid);
}