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-20 08:31:47 +00:00
committed by Luca Boccassi
parent 741bfd7f4e
commit 23afa884d4
+2 -14
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);