]> git.ipfire.org Git - thirdparty/man-pages.git/commit
getpwnam.3: EXAMPLES: Fix signedness
authorAlejandro Colomar <alx.manpages@gmail.com>
Tue, 23 Nov 2021 11:16:43 +0000 (12:16 +0100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Tue, 23 Nov 2021 11:16:46 +0000 (12:16 +0100)
commite5d76e6b45c7a002d3403e84644b9e7dc2d9bbb5
tree22a9800d8f80fd82cd8c9b6b0f30a8c3ca2305c0
parent04e72c3b385eb7afedd7acbe9ba02e86f922b73e
getpwnam.3: EXAMPLES: Fix signedness

sysconf(3) returns a long.  Since it can return -1 (and we're
making use of that value), we can't use size_t for bufsize.
Use long.

Link: <https://bugzilla.kernel.org/show_bug.cgi?id=215097>
Reported-by: Fabian <fabian@ritter-vogt.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/getpwnam.3