1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

udev: use DEFINE_MAIN_FUNCTION in cdrom_id

This was failing s390x ubuntu ci due to an old version of binutils;
the binutils package in use for ubuntu ci tests has been updated and
the build no longer fails, so this can use the macro again.

Fixes: #18165
This commit is contained in:
Dan Streetman 2021-01-17 17:46:12 -05:00 committed by Luca Boccassi
parent 741bfd7f4e
commit 23afa884d4

View File

@ -11,6 +11,7 @@
#include <unistd.h>
#include "fd-util.h"
#include "main-func.h"
#include "memory-util.h"
#include "random-util.h"
#include "sort-util.h"
@ -1005,17 +1006,4 @@ work:
return 0;
}
int main(int argc, char *argv[]) {
int r;
log_set_target(LOG_TARGET_AUTO);
udev_parse_config();
log_parse_environment();
log_open();
r = run(argc, argv);
log_close();
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}
DEFINE_MAIN_FUNCTION(run);