Andrew Talbot : ntdll: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 28 08:08:02 CDT 2007
Module: wine
Branch: master
Commit: e3708a60b40e96818fcf3f43b9e71fb473bf7bdc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e3708a60b40e96818fcf3f43b9e71fb473bf7bdc
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Wed Jun 27 20:59:51 2007 +0100
ntdll: Constify some variables.
---
dlls/ntdll/thread.c | 2 +-
dlls/ntdll/virtual.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index b100608..eaea02c 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -131,7 +131,7 @@ static inline NTSTATUS init_teb( TEB *teb )
*
* 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)
{
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 5964258..7f42f59 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -366,9 +366,9 @@ static void add_reserved_area( void *addr, size_t size )
*
* 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));
}
More information about the wine-cvs
mailing list