Commit 35b63cc1 authored by David Lawrence's avatar David Lawrence
Browse files

use type in_port_t instead of unsigned int for ports,

include string.h for memset prototype,
include isc/net.h instead of arpa/inet.h, netinet/in.h and sys/socket.h
parent 7aab9a09
......@@ -17,12 +17,12 @@
#include <config.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <isc/assertions.h>
#include <isc/net.h>
#include <dns/confzone.h>
#include <dns/confcommon.h>
......@@ -944,7 +944,7 @@ dns_c_zone_setpubkey(dns_c_zone_t *zone, dns_c_pubkey_t *pubkey,
isc_result_t
dns_c_zone_setmasterport(dns_c_zone_t *zone, isc_int32_t port)
dns_c_zone_setmasterport(dns_c_zone_t *zone, in_port_t port)
{
isc_boolean_t existed = ISC_FALSE;
......@@ -1796,7 +1796,7 @@ dns_c_zone_getpubkey(dns_c_zone_t *zone, dns_c_pubkey_t **retval)
isc_result_t
dns_c_zone_getmasterport(dns_c_zone_t *zone, isc_int32_t *retval)
dns_c_zone_getmasterport(dns_c_zone_t *zone, in_port_t *retval)
{
isc_result_t res = ISC_R_SUCCESS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment