]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux ttyname: Change return type of is_pty from int to bool
authorLuke Shumaker <lukeshu@parabola.nu>
Wed, 15 Nov 2017 19:33:11 +0000 (20:33 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 22 Dec 2017 14:23:52 +0000 (15:23 +0100)
commitbd81a9d1e99f04d0b664542ddec2d270789f7ec1
tree106a796f20d961450427ae353f0991bed27d9f02
parent1f0ba053ed6d065b2261f49d77bdcf4a34255689
linux ttyname: Change return type of is_pty from int to bool

is_pty returning a bool is fine since there's no possible outcome other than
true or false, and bool is used throughout the codebase.

Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
(cherry picked from commit d10d6cab168ffa26ef6a506655ee5dc8537c8ed7)
ChangeLog
sysdeps/unix/sysv/linux/ttyname.h