fix(0025): use spoof_enabled() not spoof_on() at the smbios call site
spoof_on() is internal (spoof-core.h); the smbios.c call site only includes the public spoof.h, which exposes spoof_enabled() (== spoof_on). Fixes the base build: implicit-declaration / nested-externs -Werror. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ index 7d71418..140b42a 100644
|
||||
+ /* qemu-spoof: real boards expose port connectors (type 8) and expansion slots
|
||||
+ * (type 9); QEMU emits none, so dmidecode is conspicuously empty. Inject a
|
||||
+ * plausible desktop default set when none were configured. Inert without a seed. */
|
||||
+ if (spoof_on() && QTAILQ_EMPTY(&type8)) {
|
||||
+ if (spoof_enabled() && QTAILQ_EMPTY(&type8)) {
|
||||
+ static const struct { const char *intr, *extr; uint8_t ct, pt; } sp_ports[] = {
|
||||
+ { "JUSB1", "USB1", 0x12, 0x10 }, /* Access Bus (USB) / USB */
|
||||
+ { "JUSB2", "USB2", 0x12, 0x10 },
|
||||
@@ -36,7 +36,7 @@ index 7d71418..140b42a 100644
|
||||
+ QTAILQ_INSERT_TAIL(&type8, t8, next);
|
||||
+ }
|
||||
+ }
|
||||
+ if (spoof_on() && QTAILQ_EMPTY(&type9)) {
|
||||
+ if (spoof_enabled() && QTAILQ_EMPTY(&type9)) {
|
||||
+ static const struct {
|
||||
+ const char *desig; uint8_t type, width, usage, length; uint16_t id;
|
||||
+ } sp_slots[] = {
|
||||
|
||||
Reference in New Issue
Block a user