comparison os2/dirent.c @ 289:0e6f09149eaa

Fixed some EMX warnings.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 19 Mar 2003 14:58:23 +0000
parents 75bf3051235f
children 2ff26b697877
comparison
equal deleted inserted replaced
288:92367f4c0836 289:0e6f09149eaa
65 static char cache[1+26]; 65 static char cache[1+26];
66 char drive[3], info[512]; 66 char drive[3], info[512];
67 Word unit, infolen; 67 Word unit, infolen;
68 char r; 68 char r;
69 69
70 if (isalpha(path[0]) && path[1] == ':') { 70 if (isalpha((int)path[0]) && path[1] == ':') {
71 unit = toupper(path[0]) - '@'; 71 unit = toupper(path[0]) - '@';
72 path += 2; 72 path += 2;
73 } else { 73 } else {
74 ULONG driveMap; 74 ULONG driveMap;
75 if (DosQueryCurrentDisk(&unit, &driveMap)) 75 if (DosQueryCurrentDisk(&unit, &driveMap))
99 99
100 char * 100 char *
101 _abs_path(const char *name, char *buffer, int len) 101 _abs_path(const char *name, char *buffer, int len)
102 { 102 {
103 char buf[4]; 103 char buf[4];
104 if (isalpha(name[0]) && name[1] == ':' && name[2] == '\0') { 104 if (isalpha((int)name[0]) && name[1] == ':' && name[2] == '\0') {
105 buf[0] = name[0]; 105 buf[0] = name[0];
106 buf[1] = name[1]; 106 buf[1] = name[1];
107 buf[2] = '.'; 107 buf[2] = '.';
108 buf[3] = '\0'; 108 buf[3] = '\0';
109 name = buf; 109 name = buf;