Change in libosmocore[master]: socket: osmo_sock_get_name() Use "const void *" as talloc context

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Mar 19 14:04:04 UTC 2019


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/13309 )

Change subject: socket: osmo_sock_get_name() Use "const void *" as talloc context
......................................................................

socket: osmo_sock_get_name() Use "const void *" as talloc context

Change-Id: Ie6877277cddb0a9e049449c260afe3314ba65050
---
M include/osmocom/core/socket.h
M src/socket.c
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h
index e06f926..4f6ed72 100644
--- a/include/osmocom/core/socket.h
+++ b/include/osmocom/core/socket.h
@@ -66,7 +66,7 @@
 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 37fd584..6a3f254 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -781,7 +781,7 @@
  *  \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;

-- 
To view, visit https://gerrit.osmocom.org/13309
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie6877277cddb0a9e049449c260afe3314ba65050
Gerrit-Change-Number: 13309
Gerrit-PatchSet: 2
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190319/d1d2f876/attachment.htm>


More information about the gerrit-log mailing list