This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] linux: add support for uname26 personality
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 03 Dec 2015 09:59:34 +0100
- Subject: Re: [PATCH] linux: add support for uname26 personality
- Authentication-results: sourceware.org; auth=none
- References: <1449098562-9513-1-git-send-email-aurelien at aurel32 dot net>
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."