This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] linux: add support for uname26 personality


Aurelien Jarno <aurelien@aurel32.net> writes:

> +static int
> +convert_from_uname26 (int version)
> +{
> +  if ((version & 0xffff00) == 0x020600)
> +    {
> +      /* 2.6.40+x to 3.x */
> +      if ((version & 0xff) >= 60)
> +	version += 0x020000 - 60;
> +      /* 2.6.60+x to 4.x */
> +      else if ((version & 0xff) >= 40)
> +	version += 0x010000 - 40;

The comments are backwards.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]