Re: prototype of delay(9) is inconsistent

2020-12-21 Thread Mark Kettenis
> Date: Mon, 21 Dec 2020 11:25:28 -0600 > From: Scott Cheloha > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > > The manpage for delay(9) suggests that the prototype is: > > void delay(int); > > But on armv7, arm64, hppa, macppc, and powerpc64 the input is unsigned >

Re: prototype of delay(9) is inconsistent

2020-12-21 Thread Theo de Raadt
catching underflow which results in infinite delays is probably very handy. Scott Cheloha wrote: > The manpage for delay(9) suggests that the prototype is: > > void delay(int); > > But on armv7, arm64, hppa, macppc, and powerpc64 the input is unsigned > or a u_int instead of an int. Like this

prototype of delay(9) is inconsistent

2020-12-21 Thread Scott Cheloha
The manpage for delay(9) suggests that the prototype is: void delay(int); But on armv7, arm64, hppa, macppc, and powerpc64 the input is unsigned or a u_int instead of an int. Like this: void delay(unsigned); or this: void delay(u_int); Can we pick a prototype and stick to it? An upside of a