|
From: <sv...@va...> - 2009-08-27 23:22:57
|
Author: sewardj
Date: 2009-08-28 00:22:39 +0100 (Fri, 28 Aug 2009)
New Revision: 10876
Log:
Fix a couple of nits picked up by gcc-4.5, which is more warningful than 4.4.
Modified:
trunk/coregrind/launcher-linux.c
trunk/coregrind/m_syswrap/syswrap-x86-linux.c
Modified: trunk/coregrind/launcher-linux.c
===================================================================
--- trunk/coregrind/launcher-linux.c 2009-08-27 18:09:16 UTC (rev 10875)
+++ trunk/coregrind/launcher-linux.c 2009-08-27 23:22:39 UTC (rev 10876)
@@ -135,7 +135,8 @@
return NULL;
}
- VG_(debugLog)(2, "launcher", "read %ld bytes from '%s'\n", n_bytes, clientname);
+ VG_(debugLog)(2, "launcher", "read %ld bytes from '%s'\n",
+ (long int)n_bytes, clientname);
if (header[0] == '#' && header[1] == '!') {
int i = 2;
Modified: trunk/coregrind/m_syswrap/syswrap-x86-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2009-08-27 18:09:16 UTC (rev 10875)
+++ trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2009-08-27 23:22:39 UTC (rev 10876)
@@ -588,7 +588,7 @@
/* If this thread doesn't have an LDT, we'd better allocate it
now. */
- if (ldt == (HWord)NULL) {
+ if (ldt == NULL) {
ldt = alloc_zeroed_x86_LDT();
VG_(threads)[tid].arch.vex.guest_LDT = (HWord)ldt;
}
|