From 7536af02cf218f8dcb1368bec6d86c65db95c9b4 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 22 Dec 2015 13:49:30 -0800 Subject: Eliminate gpr_ int types - and insist on C99 variants instead --- test/core/util/port_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/util/port_posix.c') diff --git a/test/core/util/port_posix.c b/test/core/util/port_posix.c index 0a50660586..732a51c5cb 100644 --- a/test/core/util/port_posix.c +++ b/test/core/util/port_posix.c @@ -174,7 +174,7 @@ static int is_port_available(int *port, int is_tcp) { /* Try binding to port */ addr.sin_family = AF_INET; addr.sin_addr.s_addr = INADDR_ANY; - addr.sin_port = htons((gpr_uint16)*port); + addr.sin_port = htons((uint16_t)*port); if (bind(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { gpr_log(GPR_DEBUG, "bind(port=%d) failed: %s", *port, strerror(errno)); close(fd); -- cgit v1.2.3