diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-10-31 19:05:37 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-10-31 19:05:37 +0700 |
commit | 642b9e483b99e483bd5b3bdb44e14391226ee920 (patch) | |
tree | bbe67967d39b6e63111d0eede0219d72f006d357 | |
parent | e041c4f4a9a8683699879df696cfcbd1e60cccdb (diff) |
utils.c: drop 'const' qualifier from udtrace_sstate_by_fd()
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |