[PATCH v4 1/6] Make getfdproto returns integer instead of string

Dmitry V. Levin ldv at altlinux.org
Sun Jun 19 23:31:27 UTC 2016

On Fri, Jun 17, 2016 at 04:29:53PM +0000, Fabien Siron wrote:
> Introduce a new enum type sock_proto and use it instead of strings for socket
> protocols identification.
> * defs.h (get_proto_by_name): Add.
> (sock_proto): New enum.
> * socketutils.c (print_sockaddr_by_inode): Change type of "proto".
> (get_proto_by_name): New function.
> (protocols): New static table.
> * util.c (getfdproto): Return sock_proto instead of string.
> (printfd): Change type of proto.

Applied, thanks.

I've edited the commit message, please have a look at what's been changed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160620/8368a8d8/attachment.bin>

More information about the Strace-devel mailing list