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:
97d2612
)
Cleaned up error handling and uses of TRUE/FALSE.
author
Matt Kraai
<kraai@debian.org>
Wed, 25 Oct 2000 16:38:00 +0000
(16:38 -0000)
committer
Matt Kraai
<kraai@debian.org>
Wed, 25 Oct 2000 16:38:00 +0000
(16:38 -0000)
coreutils/logname.c
patch
|
blob
|
history
logname.c
patch
|
blob
|
history
diff --git
a/coreutils/logname.c
b/coreutils/logname.c
index 09ee24928a1ba6aa8dbf0242723ea9ed0bb210f8..89c409f006a5fb6809814de63675186e2b651219 100644
(file)
--- a/
coreutils/logname.c
+++ b/
coreutils/logname.c
@@
-33,8
+33,7
@@
extern int logname_main(int argc, char **argv)
my_getpwuid(user, geteuid());
if (user) {
puts(user);
-
exit(TRUE)
;
+
return EXIT_SUCCESS
;
}
- errorMsg("no login name\n");
- return(FALSE);
+ fatalError("no login name\n");
}
diff --git
a/logname.c
b/logname.c
index 09ee24928a1ba6aa8dbf0242723ea9ed0bb210f8..89c409f006a5fb6809814de63675186e2b651219 100644
(file)
--- a/
logname.c
+++ b/
logname.c
@@
-33,8
+33,7
@@
extern int logname_main(int argc, char **argv)
my_getpwuid(user, geteuid());
if (user) {
puts(user);
-
exit(TRUE)
;
+
return EXIT_SUCCESS
;
}
- errorMsg("no login name\n");
- return(FALSE);
+ fatalError("no login name\n");
}