aboutsummaryrefslogtreecommitdiffhomepage
path: root/sanity.c
diff options
context:
space:
mode:
authorGravatar Grissiom <chaos.proton@gmail.com>2010-09-18 09:51:16 +0800
committerGravatar Grissiom <chaos.proton@gmail.com>2010-09-18 09:51:16 +0800
commitc6372a1b3f56d7022f135b8f1baeaff44816ec7c (patch)
tree1e274b07fc1942d7f39d334771c7d621a164b15f /sanity.c
parent41b8db063c032c673e366d81bccf37022b9c1d4f (diff)
remove trailing spaces
This is done by `sed -i -e 's/[ \t]*$//' *.[c,h]`, which should not introduce any functionality change.
Diffstat (limited to 'sanity.c')
-rw-r--r--sanity.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sanity.c b/sanity.c
index 3e51b4f3..c68a87d2 100644
--- a/sanity.c
+++ b/sanity.c
@@ -49,27 +49,27 @@ int sanity_check()
kill_sanity_check();
if( !insane )
proc_sanity_check();
-
+
return insane;
}
void validate_pointer( const void *ptr, const wchar_t *err, int null_ok )
{
-
- /*
- Test if the pointer data crosses a segment boundary.
+
+ /*
+ Test if the pointer data crosses a segment boundary.
*/
-
+
if( (0x00000003l & (long)ptr) != 0 )
{
debug( 0, _(L"The pointer '%ls' is invalid"), err );
- sanity_lose();
+ sanity_lose();
}
-
+
if((!null_ok) && (ptr==0))
{
debug( 0, _(L"The pointer '%ls' is null"), err );
- sanity_lose();
+ sanity_lose();
}
}