summaryrefslogtreecommitdiff
path: root/src/random-seed.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-31 21:05:54 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-31 21:05:54 +0200
commit22f4096ca96acd504ac74e7dfad96f07edb6da51 (patch)
treeebe2bb84f85e0abd8abb508fa91e2c3165bc4ce4 /src/random-seed.c
parentf73e33d9ecdd5f97f31a3efcca254519eef5b7ea (diff)
systemctl: rework exit codes for all utility programs to follow LSB or other standards
Diffstat (limited to 'src/random-seed.c')
-rw-r--r--src/random-seed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/random-seed.c b/src/random-seed.c
index 586c69837b..936ed4791b 100644
--- a/src/random-seed.c
+++ b/src/random-seed.c
@@ -32,7 +32,7 @@
int main(int argc, char *argv[]) {
int seed_fd = -1, random_fd = -1;
- int ret = 1;
+ int ret = EXIT_FAILURE;
void* buf;
size_t buf_size = 0;
ssize_t r;
@@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
if (argc != 2) {
log_error("This program requires one argument.");
- return 1;
+ return EXIT_FAILURE;
}
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
@@ -119,7 +119,7 @@ int main(int argc, char *argv[]) {
log_error("Failed to write new random seed file: %s", r < 0 ? strerror(errno) : "short write");
}
- ret = 0;
+ ret = EXIT_SUCCESS;
finish:
if (random_fd >= 0)