From 726f69e29ca9d4842f3acb20fffd2466fda62c09 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:33 +0100 Subject: Imported from util-linux-2.5 tarball. --- sys-utils/tunelp.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'sys-utils/tunelp.c') diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 9005b172d..a854b46b1 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -6,10 +6,13 @@ * for information on distribution conditions. * \****************************************************************************/ -/* tunelp.c,v 1.1.1.1 1995/02/22 19:09:12 faith Exp - * tunelp.c,v - * Revision 1.1.1.1 1995/02/22 19:09:12 faith - * Imported sources +/* $Id: tunelp.c,v 1.6 1995/06/04 01:47:11 faith Exp $ + * $Log: tunelp.c,v $ + * Revision 1.6 1995/06/04 01:47:11 faith + * Changes for util-linux-2.4 + * + * Revision 1.5 1995/03/12 01:29:50 faith + * util-linux-2.1 * * Revision 1.5 1995/01/13 10:33:43 johnsonm * Chris's changes for new ioctl numbers and backwards compatibility @@ -195,7 +198,7 @@ int main (int argc, char ** argv) { } /* Allow for binaries compiled under a new kernel to work on the old ones */ - if (LPGETIRQ >= 0x0600 && ioctl(fd, LPGETIRQ) < 0 && errno == EINVAL) + if (LPGETIRQ >= 0x0600 && ioctl(fd, LPGETIRQ, &irq) < 0 && errno == EINVAL) offset = 0x0600; /* We don't understand the new ioctls */ cmds = cmdst; -- cgit v1.2.3-55-g7522