diff src/nt.c @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents 727739f917cb
children ca9a9ec9c1c1
line wrap: on
line diff
--- a/src/nt.c	Mon Aug 13 10:27:41 2007 +0200
+++ b/src/nt.c	Mon Aug 13 10:28:48 2007 +0200
@@ -638,7 +638,7 @@
       "TERM",
     };
 
-    for (i = 0; i < (sizeof (env_vars) / sizeof (env_vars[0])); i++) 
+    for (i = 0; i < countof (env_vars); i++) 
       {
 	if (!getenv (env_vars[i]) &&
 	    (lpval = nt_get_resource (env_vars[i], &dwType)) != NULL)
@@ -1248,13 +1248,13 @@
 }
 
 int
-sys_chmod (const char * path, int mode)
+sys_chmod (const char * path, mode_t mode)
 {
   return _chmod (map_win32_filename (path, NULL), mode);
 }
 
 int
-sys_creat (const char * path, int mode)
+sys_creat (const char * path, mode_t mode)
 {
   return _creat (map_win32_filename (path, NULL), mode);
 }
@@ -2428,7 +2428,7 @@
 }
 
 int
-sys_read (int fd, char * buffer, unsigned int count)
+sys_read (int fd, char * buffer, size_t count)
 {
   int nchars;
   int to_read;
@@ -2576,7 +2576,7 @@
 
 /* For now, don't bother with a non-blocking mode */
 int
-sys_write (int fd, const void * buffer, unsigned int count)
+sys_write (int fd, const void * buffer, size_t count)
 {
   int nchars;