Ticket #17842: patch-compile.diff

File patch-compile.diff, 555 bytes (added by lfk@…, 16 years ago)

files/patch-compile.diff for the mg-20081211 portfile update

  • ./buffer.c

    old new  
    653653        int      count;
    654654        size_t   remain, len;
    655655
    656         len = strlcpy(bn, basename(fn), bs);
     656        len = strlcpy(bn, basename((char *)fn), bs);
    657657        if (len >= bs)
    658658                return (FALSE);
    659659
  • ./file.c

    old new  
    676676{
    677677        char *dp;
    678678       
    679         dp = dirname(path);
     679        dp = dirname((char *)path);
    680680        if (*dp && dp[0] == '/' && dp[1] == '\0')
    681681                return (strdup(""));
    682682