summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-05-14 13:40:04 +0200
committerThomas Haller <thaller@redhat.com>2019-05-17 21:09:20 +0200
commit467ac96dd1e71d3c3868671001cca4fb5954dc17 (patch)
treeb8dbf0d609f4b5076c933b2c2b2e0fcd9cf3b847
parent138c187376cff1c14c66a3fdc502d260178081bb (diff)
downloadNetworkManager-467ac96dd1e71d3c3868671001cca4fb5954dc17.tar.gz
logging: use char pointer for iov_free in _nm_log_impl()
-rw-r--r--src/nm-logging.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-logging.c b/src/nm-logging.c
index 724fd004f2..7b6b2f7a12 100644
--- a/src/nm-logging.c
+++ b/src/nm-logging.c
@@ -629,7 +629,7 @@ _iovec_set_string (struct iovec *iov, const char *str)
_nm_printf (3, 4)
static void
-_iovec_set_format (struct iovec *iov, gpointer *iov_free, const char *format, ...)
+_iovec_set_format (struct iovec *iov, char **iov_free, const char *format, ...)
{
va_list ap;
char *str;
@@ -749,8 +749,8 @@ _nm_log_impl (const char *file,
#define _NUM_MAX_FIELDS_SYSLOG_FACILITY 10
struct iovec iov_data[14 + _NUM_MAX_FIELDS_SYSLOG_FACILITY];
struct iovec *iov = iov_data;
- gpointer iov_free_data[5];
- gpointer *iov_free = iov_free_data;
+ char *iov_free_data[5];
+ char **iov_free = iov_free_data;
nm_auto_free_gstring GString *s_domain_all = NULL;
now = nm_utils_get_monotonic_timestamp_ns ();