From ce0ac322b4a673e59e6e04467b2ceaf7a9637a68 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 23 Oct 2008 23:20:50 +0200 Subject: Fix prototype for set_sockaddr_port. --- source3/include/proto.h | 2 +- source3/lib/interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index 7a5cd3b07e..83cd740a78 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1507,7 +1507,7 @@ char *print_sockaddr(char *dest, const struct sockaddr_storage *psa); char *print_canonical_sockaddr(TALLOC_CTX *ctx, const struct sockaddr_storage *pss); -void set_sockaddr_port(struct sockaddr_storage *psa, uint16 port); +void set_sockaddr_port(struct sockaddr *psa, uint16_t port); const char *client_name(int fd); const char *client_addr(int fd, char *addr, size_t addrlen); const char *client_socket_addr(int fd, char *addr, size_t addr_len); diff --git a/source3/lib/interface.c b/source3/lib/interface.c index 4536990d28..f533ec92c7 100644 --- a/source3/lib/interface.c +++ b/source3/lib/interface.c @@ -289,7 +289,7 @@ const struct sockaddr_storage *iface_ip(const struct sockaddr *ip) bool iface_local(const struct sockaddr *ip) { - return iface_find(ip, True) ? true : false; + return iface_find(ip, true) ? true : false; } /**************************************************************************** -- cgit