Re: Linux 2.4.33.2

From: Patrick J. Volkerding
Date: Tue Aug 29 2006 - 17:09:05 EST


Nick Warne wrote:
On Sunday 27 August 2006 17:28, Petri Kaukasoina wrote:
On Sun, Aug 27, 2006 at 03:50:29PM +0100, Nick Warne wrote:
Good question - all I can find is the slackware package
I guess this is what you are looking for:

ftp://ftp.slackware.com/pub/slackware/slackware-current/source/l/glibc/glib
c.kernelversion.diff.gz

Good god - what a mess...

I agree, even though I'm not sure if you mean the original .h algorithm, my fix, or glibc's system of reducing a Linux kernel version to a single integer for easy comparison, though.

I'm glad my hack is getting some review. It's of the "ugly but probably reliable" variety. More so than if I'd tried to fix the loop below it... I felt it much safer to just fix the input string to give it those "at most three parts" that it was designed for.

All the best,

Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/