bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils-5.1.0 build feedback


From: Jim Meyering
Subject: Re: coreutils-5.1.0 build feedback
Date: Thu, 08 Jan 2004 15:29:37 +0100

Andreas Schwab <address@hidden> wrote:
> Here is another portability patch:
>
> --- coreutils-5.1.0/src/stat.c.~1~    2003-11-05 04:46:47.000000000 +0100
> +++ coreutils-5.1.0/src/stat.c        2004-01-08 14:37:44.000000000 +0100
> @@ -308,9 +308,9 @@ human_fstype (STRUCT_STATVFS const *stat
>      return (char *) type;
>  
>    {
> -    static char buf[sizeof "UNKNOWN (0x%x)" - 2
> +    static char buf[sizeof "UNKNOWN (0x%lx)" - 2
>                   + 2 * sizeof (statfsbuf->f_type)];
> -    sprintf (buf, "UNKNOWN (0x%x)", statfsbuf->f_type);
> +    sprintf (buf, "UNKNOWN (0x%lx)", (unsigned long) statfsbuf->f_type);
>      return buf;
>    }
>  #endif

Thank you!
I've applied that along with the tiny additional change: s/- 2/- 3/.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]