Re: [PATCH 10/24] ioctl_ns.2: Remove unneeded cast

2020-09-11 Thread Michael Kerrisk (man-pages)
Hi Alex, On 9/10/20 11:13 PM, Alejandro Colomar wrote: > Both major(3) and minor(3) return an 'unsigned int', > so there is no need to use a 'long' for printing. > Moreover, it should have been 'unsigned long', > as "%lx" expects an unsigned type. This may be true on Linux, but is not true on

[PATCH 10/24] ioctl_ns.2: Remove unneeded cast

2020-09-10 Thread Alejandro Colomar
Both major(3) and minor(3) return an 'unsigned int', so there is no need to use a 'long' for printing. Moreover, it should have been 'unsigned long', as "%lx" expects an unsigned type. Signed-off-by: Alejandro Colomar --- man2/ioctl_ns.2 | 10 -- 1 file changed, 4 insertions(+), 6