mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 10:21:20 +00:00
Fix a couple of nits picked up by gcc-4.5, which is more warningful than 4.4.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10876
This commit is contained in:
parent
1bdac0e905
commit
f8acdbc2e0
@ -135,7 +135,8 @@ static const char *select_platform(const char *clientname)
|
||||
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;
|
||||
|
||||
@ -588,7 +588,7 @@ SysRes write_ldt ( ThreadId tid, void* ptr, UInt bytecount, Int oldmode )
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user