ntdll: Constify some variables.

This commit is contained in:
Andrew Talbot 2007-06-27 20:59:51 +01:00 committed by Alexandre Julliard
parent ff62d6cf42
commit e3708a60b4
2 changed files with 3 additions and 3 deletions

View file

@ -131,7 +131,7 @@ static inline NTSTATUS init_teb( TEB *teb )
* *
* Make sure the unicode string doesn't point beyond the end pointer * Make sure the unicode string doesn't point beyond the end pointer
*/ */
static inline void fix_unicode_string( UNICODE_STRING *str, char *end_ptr ) static inline void fix_unicode_string( UNICODE_STRING *str, const char *end_ptr )
{ {
if ((char *)str->Buffer >= end_ptr) if ((char *)str->Buffer >= end_ptr)
{ {

View file

@ -366,9 +366,9 @@ static void add_reserved_area( void *addr, size_t size )
* *
* Check if an address range goes beyond a given limit. * Check if an address range goes beyond a given limit.
*/ */
static inline int is_beyond_limit( void *addr, size_t size, void *limit ) static inline int is_beyond_limit( const void *addr, size_t size, const void *limit )
{ {
return (limit && (addr >= limit || (char *)addr + size > (char *)limit)); return (limit && (addr >= limit || (const char *)addr + size > (const char *)limit));
} }