]> granicus.if.org Git - strace/commit
Consistently handle 2nd and 3rd arguments of [gs]etsockopt as unsigned
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Apr 2016 01:03:20 +0000 (01:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Apr 2016 01:03:20 +0000 (01:03 +0000)
commitf40ea796ba5199efe703f9f0b2c7343d0fb8258f
tree5e170ae027aca04f796f00c4ac0a9f8940771999
parentb0d23cc2c0e2d9d4dea253ce04955ac6c78ce49e
Consistently handle 2nd and 3rd arguments of [gs]etsockopt as unsigned

The second (level) and third (optname) arguments of getsockopt and
setsockopt syscalls are enums, so treat them consistently as enums:
use "unsigned int" type to avoid potential sign extension issues.

* net.c (print_sockopt_fd_level_name, print_getsockopt,
print_setsockopt): Change type of "level" and "name" arguments
from "int" to "unsigned int".
net.c