diff win/dirent.c @ 1601:71e0a3ad07f7

Enable level 3 warnings in DEBUG mode with Visual C to show deprecation warnings. Source code cleanup to eliminate the warnings now generated on this level.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 26 Feb 2012 09:21:35 +0000
parents 6baf177f335c
children f8d1da63fb77
line wrap: on
line diff
--- a/win/dirent.c	Sat Feb 25 23:35:59 2012 +0000
+++ b/win/dirent.c	Sun Feb 26 09:21:35 2012 +0000
@@ -30,7 +30,7 @@
 {
 	static char cache[1+26];
 	char drive[3];
-	ULONG unit;
+	UCHAR unit;
 	char r;
 
 	if (isalpha(path[0]) && path[1] == ':') {
@@ -67,7 +67,7 @@
 
 		_chdrive((newdrive - 'A')+1);
 
-		if(getcwd(buffer, len))
+		if(_getcwd(buffer, len))
 		{
 			_chdrive(drive);
 			return buffer;
@@ -149,8 +149,8 @@
 
 	strcpy(dir->entry.d_name, dir->data.cFileName);
 	dir->entry.d_ino = dummy_ino++;
-	dir->entry.d_reclen = strlen(dir->data.cFileName);
-	dir->entry.d_namlen = strlen(dir->data.cFileName);
+	dir->entry.d_reclen = (int)strlen(dir->data.cFileName);
+	dir->entry.d_namlen = (int)strlen(dir->data.cFileName);
 	dir->entry.d_size = dir->data.nFileSizeLow;
 	dir->entry.d_attribute = dir->data.dwFileAttributes;
 #if 0