Changeset 2001 for trunk/src/kmk/kmkbuiltin/kbuild_protection.c
- Timestamp:
- Oct 29, 2008, 11:14:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/kbuild_protection.c
r1635 r2001 37 37 # include <limits.h> 38 38 # include <direct.h> 39 #endif 39 #else 40 # include <unistd.h> 41 #endif 40 42 #include "kbuild_protection.h" 43 #include "err.h" 41 44 42 45 … … 185 188 } 186 189 } 187 #else 190 #else /* !WIN && !OS2 */ 188 191 if (!IS_SLASH(pszPath[0])) 189 192 { … … 199 202 cComponents = countSubPathComponents(szCwd, 0); 200 203 } 201 #endif 204 #endif /* !WIN && !OS2 */ 202 205 203 206 /* … … 352 355 if (cComponents < 0) 353 356 return -1; 354 if ( cComponents <= pThis->cProtectionDepth)357 if ((unsigned int)cComponents <= pThis->cProtectionDepth) 355 358 { 356 359 errx(1, "%s: protected", pszPath);
Note:
See TracChangeset
for help on using the changeset viewer.