From 4e08da90d4df797308d4646af345cfc0486b06d1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 22 Feb 2011 00:19:03 +0100 Subject: [PATCH] util: make string static --- src/detect-virt.c | 2 +- src/util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/detect-virt.c b/src/detect-virt.c index 7685d18c..57f01766 100644 --- a/src/detect-virt.c +++ b/src/detect-virt.c @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { } if (r > 0) - printf("%s\n", id); + puts(id); return r == 0; } diff --git a/src/util.c b/src/util.c index 7e8246bb..aa49390b 100644 --- a/src/util.c +++ b/src/util.c @@ -3719,7 +3719,7 @@ int detect_vm(const char **id) { "/sys/class/dmi/id/bios_vendor" }; - const char dmi_vendor_table[] = + static const char dmi_vendor_table[] = "QEMU\0" "qemu\0" /* http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 */ "VMware\0" "vmware\0" @@ -3729,7 +3729,7 @@ int detect_vm(const char **id) { "Xen\0" "xen\0" "\0"; - const char cpuid_vendor_table[] = + static const char cpuid_vendor_table[] = "XenVMMXenVMM\0" "xen\0" "KVMKVMKVM\0" "kvm\0" /* http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 */ -- 2.39.5