rndcontrol doesn't work on -STABLE?

Mark Andrews Mark_Andrews at isc.org
Sun Feb 22 17:27:24 PST 2004


> Index: usr.sbin/rndcontrol/rndcontrol.c
> ===================================================================
> RCS file: /home/ncvs/src/usr.sbin/rndcontrol/Attic/rndcontrol.c,v
> retrieving revision 1.11.2.1
> diff -u -r1.11.2.1 rndcontrol.c
> --- usr.sbin/rndcontrol/rndcontrol.c	10 May 2000 02:04:44 -0000	1.11.2.
> 1
> +++ usr.sbin/rndcontrol/rndcontrol.c	23 Feb 2004 01:03:45 -0000
> @@ -95,7 +95,7 @@
>  				return (1);
>  			}
>  			printf("%s: interrupts in use:", argv[0]);
> -			for (i = 0; i < 16; i++)
> +			for (i = 0; i < 24; i++)
>  				if (irq & (1 << i))
>  					printf(" %d", i);
>  			printf("\n");

	This is broken.  'irq' is u_int16_t.

> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org


More information about the freebsd-stable mailing list