summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-24 17:14:57 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-24 17:14:57 +0200
commit681de8128d19b2d82cdf985829ba961ada8251ea (patch)
tree030e069ebe74b6689d7611eee034ec43e5ce4abb
parentae4566a67ff38dcf497ecd7ff280aab331542ec3 (diff)
parent76c73487d090afaac3fb8bea232c2ebe965d59fd (diff)
Merge pull request #1376 from dvdhrm/hostnamed-argc
hostnamed: drop redundant code
-rw-r--r--src/hostname/hostnamed.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index 96cc8951e6..dd508aefb5 100644
--- a/src/hostname/hostnamed.c
+++ b/src/hostname/hostnamed.c
@@ -709,12 +709,6 @@ int main(int argc, char *argv[]) {
goto finish;
}
- if (argc != 1) {
- log_error("This program takes no arguments.");
- r = -EINVAL;
- goto finish;
- }
-
r = sd_event_default(&event);
if (r < 0) {
log_error_errno(r, "Failed to allocate event loop: %m");