Ignore:
Timestamp:
Oct 29, 2008, 11:14:48 PM (17 years ago)
Author:
bird
Message:

kmk: pedantic warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/kbuild_protection.c

    r1635 r2001  
    3737# include <limits.h>
    3838# include <direct.h>
    39 #endif
     39#else
     40# include <unistd.h>
     41#endif
    4042#include "kbuild_protection.h"
     43#include "err.h"
    4144
    4245
     
    185188        }
    186189    }
    187 #else
     190#else  /* !WIN && !OS2 */
    188191    if (!IS_SLASH(pszPath[0]))
    189192    {
     
    199202        cComponents = countSubPathComponents(szCwd, 0);
    200203    }
    201 #endif
     204#endif /* !WIN && !OS2 */
    202205
    203206    /*
     
    352355        if (cComponents < 0)
    353356            return -1;
    354         if (cComponents <= pThis->cProtectionDepth)
     357        if ((unsigned int)cComponents <= pThis->cProtectionDepth)
    355358        {
    356359            errx(1, "%s: protected", pszPath);
Note: See TracChangeset for help on using the changeset viewer.