diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-03-18 18:29:43 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-03-19 14:04:00 +0000 |
commit | c0dfc9d885970f0116bf0e0af4cbe36c330f88bc (patch) | |
tree | 4a7409ca2665e0bcafb98dda492bef35f27b5433 | |
parent | 54f5f4da5978662524d9a9aa106afb4a92710eb1 (diff) |
socket: osmo_sock_get_name() Use "const void *" as talloc context
Change-Id: Ie6877277cddb0a9e049449c260afe3314ba65050
-rw-r--r-- | include/osmocom/core/socket.h | 2 | ||||
-rw-r--r-- | src/socket.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h index e06f926f..4f6ed72b 100644 --- a/include/osmocom/core/socket.h +++ b/include/osmocom/core/socket.h @@ -66,7 +66,7 @@ int osmo_sock_unix_init(uint16_t type, uint8_t proto, int osmo_sock_unix_init_ofd(struct osmo_fd *ofd, uint16_t type, uint8_t proto, const char *socket_path, unsigned int flags); -char *osmo_sock_get_name(void *ctx, int fd); +char *osmo_sock_get_name(const void *ctx, int fd); const char *osmo_sock_get_name2(int fd); int osmo_sock_get_name_buf(char *str, size_t str_len, int fd); int osmo_sock_get_ip_and_port(int fd, char *ip, size_t ip_len, char *port, size_t port_len, bool local); diff --git a/src/socket.c b/src/socket.c index 37fd5844..6a3f2540 100644 --- a/src/socket.c +++ b/src/socket.c @@ -781,7 +781,7 @@ int osmo_sock_get_remote_ip_port(int fd, char *port, size_t len) * \param[in] fd file descriptor of socket * \returns string identifying the connection of this socket, talloc'd from ctx. */ -char *osmo_sock_get_name(void *ctx, int fd) +char *osmo_sock_get_name(const void *ctx, int fd) { char str[OSMO_SOCK_NAME_MAXLEN]; int rc; |