Re: bug in example in http://man7.org/linux/man-pages/man7/pkeys.7.html void -> int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think Aaron's point is that if you tried to compile the example program, you would get:

  pkeys.c: In function ‘pkey_set’:
  pkeys.c:22:12: error: void value not ignored as it ought to be
     22 |     return wrpkru(pkru);
        |            ^~~~~~~~~~~~

--
Jakub Wilk



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux