Merge pull request #1376 from dvdhrm/hostnamed-argc

hostnamed: drop redundant code
This commit is contained in:
Lennart Poettering
2015-09-24 17:14:57 +02:00
-6
View File
@@ -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");