mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-17 00:34:13 -04:00
Use enum values (isc_sockettype_tcp) rather than integers (2)
This commit is contained in:
parent
a84724de8d
commit
d8acf6268a
1 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.273 2007/06/18 23:47:48 tbox Exp $ */
|
||||
/* $Id: socket.c,v 1.274 2007/07/27 14:28:04 explorer Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
|
|
@ -4060,15 +4060,15 @@ isc_socket_gettag(isc_socket_t *socket) {
|
|||
#ifdef HAVE_LIBXML2
|
||||
|
||||
static const char *
|
||||
_socktype(int type)
|
||||
_socktype(isc_sockettype_t type)
|
||||
{
|
||||
if (type == 1)
|
||||
if (type == isc_sockettype_udp)
|
||||
return ("udp");
|
||||
else if (type == 2)
|
||||
else if (type == isc_sockettype_tcp)
|
||||
return ("tcp");
|
||||
else if (type == 3)
|
||||
else if (type == isc_sockettype_unix)
|
||||
return ("unix");
|
||||
else if (type == 4)
|
||||
else if (type == isc_sockettype_fdwatch)
|
||||
return ("fdwatch");
|
||||
else
|
||||
return ("not-initialized");
|
||||
|
|
|
|||
Loading…
Reference in a new issue