summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-03-09 23:30:41 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-03-11 11:27:47 +1100
commit4ab3e220c4188b6c147e1a0fa8ce1e2965d74d43 (patch)
tree265f464b97d1d68407553680bffa79dfbe6af97d
parent5ed18fad0037146bb321eb7e73c82be403a45917 (diff)
downloadsamba-4ab3e220c4188b6c147e1a0fa8ce1e2965d74d43.tar.gz
samba-4ab3e220c4188b6c147e1a0fa8ce1e2965d74d43.tar.bz2
samba-4ab3e220c4188b6c147e1a0fa8ce1e2965d74d43.zip
Move prototype to header of common code for set_sockaddr_port
-rw-r--r--lib/util/util_net.h2
-rw-r--r--source3/include/proto.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/util_net.h b/lib/util/util_net.h
index 6eacfc395f..5dc4df5e12 100644
--- a/lib/util/util_net.h
+++ b/lib/util/util_net.h
@@ -43,4 +43,6 @@ bool interpret_string_addr_prefer_ipv4(struct sockaddr_storage *pss,
const char *str,
int flags);
+void set_sockaddr_port(struct sockaddr *psa, uint16_t port);
+
#endif /* _SAMBA_UTIL_NET_H_ */
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 6ecf0a5542..f6a43852f0 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1374,7 +1374,6 @@ 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 *psa, uint16_t port);
const char *client_name(int fd);
int get_socket_port(int fd);
const char *client_addr(int fd, char *addr, size_t addrlen);