From ad79337dc4e50a66e725ea0b80a42731364ff6c3 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 1 Jul 2005 22:59:45 +0000 Subject: Fix version check to work on major >= 3. svn path=/trunk/; revision=4062 --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index c264f22b..45706c0f 100644 --- a/interface.c +++ b/interface.c @@ -91,7 +91,7 @@ void interface_init(void) int major, minor; if (sscanf(utsname.release, "%d.%d.%*d", &major, &minor) >= 2 - && !(major >= 2 && minor >= 2)) + && (major < 2 || (major == 2 && minor < 2))) /* pre-linux-2.2 format -- transmit packet count in 8th field */ netdevfmt = "%d %d %*d %*d %*d %d %*d %d %*d %*d %*d %*d %d"; } -- cgit v1.2.3