- int -> intptr_t
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 24 Jul 2008 00:54:12 +0000 (00:54 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 24 Jul 2008 00:54:12 +0000 (00:54 +0000)
- unsigned long -> uintptr_t
- #undef _MINGW_IMPORT in ctype.c, to avoid warnings

svn path=/branches/ros-amd64-bringup/; revision=34718

reactos/lib/sdk/crt/process/_system.c
reactos/lib/sdk/crt/process/process.c
reactos/lib/sdk/crt/stdio/lnx_vfprintf.c
reactos/lib/sdk/crt/stdio/lnx_vfwprint.c
reactos/lib/sdk/crt/string/ctype.c

index 94bbe7f..f6173db 100644 (file)
@@ -108,7 +108,7 @@ int system(const char *command)
   CloseHandle(ProcessInformation.hThread);
 
 // system should wait untill the calling process is finished
-  _cwait(&nStatus,(int)ProcessInformation.hProcess,0);
+  _cwait(&nStatus,(intptr_t)ProcessInformation.hProcess,0);
   CloseHandle(ProcessInformation.hProcess);
 
   return nStatus;
index 24b9740..99b3208 100644 (file)
@@ -182,7 +182,7 @@ valisttosT(const _TCHAR* arg0, va_list alist, _TCHAR delim)
    return str;
 }
 
-static int
+static intptr_t
 do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* envp)
 {
    STARTUPINFO StartupInfo = {0};
@@ -304,7 +304,7 @@ do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* env
    {
       case _P_NOWAIT:
       case _P_NOWAITO:
-         return((int)ProcessInformation.hProcess);
+         return((intptr_t)ProcessInformation.hProcess);
       case _P_OVERLAY:
          CloseHandle(ProcessInformation.hProcess);
          _exit(0);
@@ -317,7 +317,7 @@ do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* env
          CloseHandle(ProcessInformation.hProcess);
          return( 0);
    }
-   return( (int)ProcessInformation.hProcess);
+   return( (intptr_t)ProcessInformation.hProcess);
 }
 
 /*
index c2a2884..613413d 100644 (file)
@@ -788,7 +788,7 @@ int __vfprintf(FILE *f, const char *fmt, va_list args)
                                flags |= ZEROPAD;
                        }
                        result = number(f,
-                                       (unsigned long) va_arg(args, void *), 16,
+                                       (uintptr_t) va_arg(args, void *), 16,
                                        field_width, precision, flags);
                        if (result < 0)
                                return -1;
index c6a494d..9df0b65 100644 (file)
@@ -761,7 +761,7 @@ int __vfwprintf(FILE *f, const wchar_t *fmt, va_list args)
                                flags |= ZEROPAD;
                        }
                        result = number(f,
-                                       (unsigned long) va_arg(args, void *), 16,
+                                       (uintptr_t) va_arg(args, void *), 16,
                                        field_width, precision, flags);
                        if (result < 0)
                                return -1;
index 9a74204..4687072 100644 (file)
@@ -1,4 +1,6 @@
 #include <string.h>
+#undef __MINGW_IMPORT
+#define __MINGW_IMPORT
 #include <ctype.h>
 
 #undef _pctype