]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzz-bcd: Do not include bcd.c
authorJan Janssen <medhefgo@web.de>
Fri, 23 Sep 2022 07:47:26 +0000 (09:47 +0200)
committerJan Janssen <medhefgo@web.de>
Sun, 25 Sep 2022 12:26:00 +0000 (14:26 +0200)
This is not needed anymore, so do it the proper way now.

src/boot/efi/fuzz-bcd.c
src/boot/efi/meson.build

index e56183c4f010ebe4431773da3729d50d5941d6f1..6d76533e8ff5810316b489ac4d8d503626bd033c 100644 (file)
@@ -1,12 +1,11 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include "alloc-util.h"
+#include "bcd.h"
 #include "fd-util.h"
 #include "fuzz.h"
 #include "utf8.h"
 
-#include "bcd.c"
-
 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         _cleanup_free_ void *p = NULL;
 
index 22d28e4197b3287174c9ac6b06dfc232dec111ec..3bb0827f8cb21905d9cc72ecd4c2c93bb85982c6 100644 (file)
@@ -419,7 +419,7 @@ if efi_arch[1] in ['ia32', 'x86_64', 'arm', 'aarch64']
                  'HAVE_ZSTD'],
         ]
         fuzzers += [
-                [files('fuzz-bcd.c', 'efi-string.c')],
+                [files('fuzz-bcd.c', 'bcd.c', 'efi-string.c')],
         ]
 endif