Skip to contentSkip to conversation

kvm-userspace: Fix a compiler warning

PATCH Applied Andre Przywara 2 participants 2 messages Dec 10, 2008 – Dec 24, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-userspace: Fix a compiler warning

The following small patch fixes a compiler warning in KVM's vl.c

---

qemu/vl.c +1 -1
index 7b58605..b489acd 100644
@@ -4611,7 +4611,7 @@ static int gethugepagesize(void)
 {
     int ret, fd;
     char buf[4096];
-    char *needle = "Hugepagesize:";
+    const char *needle = "Hugepagesize:";
     char *size;
     unsigned long hugepagesize;
 
Signature · 9 lines
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 277-84917
----to satisfy European Law for business letters:
AMD Saxony Limited Liability Company & Co. KG,
Wilschdorfer Landstr. 101, 01109 Dresden, Germany
Register Court Dresden: HRA 4896, General Partner authorized
to represent: AMD Saxony LLC (Wilmington, Delaware, US)
General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
Applied
#1 lore raw
Quoted 2 lines · Andre Przywara

The following small patch fixes a compiler warning in KVM's vl.c

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function