diff options
author | Grissiom <chaos.proton@gmail.com> | 2010-09-18 09:51:16 +0800 |
---|---|---|
committer | Grissiom <chaos.proton@gmail.com> | 2010-09-18 09:51:16 +0800 |
commit | c6372a1b3f56d7022f135b8f1baeaff44816ec7c (patch) | |
tree | 1e274b07fc1942d7f39d334771c7d621a164b15f /halloc_util.c | |
parent | 41b8db063c032c673e366d81bccf37022b9c1d4f (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 'halloc_util.c')
-rw-r--r-- | halloc_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/halloc_util.c b/halloc_util.c index f195dca0..e55b791c 100644 --- a/halloc_util.c +++ b/halloc_util.c @@ -69,7 +69,7 @@ void *halloc_register( void *context, void *data ) { if( !data ) return 0; - + halloc_register_function( context, &free, data ); return data; } @@ -78,7 +78,7 @@ wchar_t *halloc_wcsdup( void *context, const wchar_t *in ) { size_t len=wcslen(in); wchar_t *out = halloc( context, sizeof( wchar_t)*(len+1)); - + if( out == 0 ) { DIE_MEM(); @@ -95,6 +95,6 @@ wchar_t *halloc_wcsndup( void * context, const wchar_t *in, int c ) DIE_MEM(); } wcslcpy( res, in, c+1 ); - res[c] = L'\0'; - return res; + res[c] = L'\0'; + return res; } |