mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Make sure the test for kernel version 2.6.22 will work correctly for the future kernel versions 2.6.220 .. 2.6.229.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7971
This commit is contained in:
parent
fd086f9ad2
commit
bcb85a68fb
@ -1730,7 +1730,8 @@ static int linux_kernel_2_6_22(void)
|
||||
release[read] = 0;
|
||||
VG_(close)(fd);
|
||||
//VG_(printf)("kernel release = %s\n", release);
|
||||
result = (VG_(strncmp)(release, "2.6.22", 6) == 0);
|
||||
result = (VG_(strncmp)(release, "2.6.22", 6) == 0
|
||||
&& (release[6] < '0' || release[6] > '9'));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user