summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-23 23:20:50 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-23 23:20:50 +0200
commitce0ac322b4a673e59e6e04467b2ceaf7a9637a68 (patch)
tree87106198ba01fe704f60feefa360746d3135a0f5
parentf18296151d1d8774b861ef6bd751b48ef9ee2f92 (diff)
downloadsamba-ce0ac322b4a673e59e6e04467b2ceaf7a9637a68.tar.gz
samba-ce0ac322b4a673e59e6e04467b2ceaf7a9637a68.tar.bz2
samba-ce0ac322b4a673e59e6e04467b2ceaf7a9637a68.zip
Fix prototype for set_sockaddr_port.
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/interface.c2
2 files changed, 2 insertions, 2 deletions
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;
}
/****************************************************************************