summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 4b653f2..ad008e7 100644
--- a/utils.c
+++ b/utils.c
@@ -133,7 +133,7 @@ void udtrace_fd_set_path(int fd, const char *path)
}
}
-const struct sock_state *udtrace_sstate_by_fd(int fd)
+struct sock_state *udtrace_sstate_by_fd(int fd)
{
int i;
for (i = 0; i < ARRAY_SIZE(unix_fds); i++) {
@@ -154,7 +154,7 @@ bool is_unix_socket(int fd)
void udtrace_data(int fd, bool is_out, const char *fn, const uint8_t *data, unsigned int len)
{
- const struct sock_state *ss = udtrace_sstate_by_fd(fd);
+ struct sock_state *ss = udtrace_sstate_by_fd(fd);
if (!data || !len || !ss)
return;
ss->dissector(fd, is_out, fn, data, len);
personal git repositories of Harald Welte. Your mileage may vary