1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-25 18:50:18 +03:00

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
commit 681de8128d

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");