diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-02-13 07:21:47 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-02-13 07:21:47 +0100 |
commit | 8af37b3770843f415f1d8786019686a3b6a0a153 (patch) | |
tree | 3fef1f21b537a6bd792ff5c7c4d3463b4d7e465f /dependencies | |
parent | 8949ba39e63cd7eeb279f20a74db834d02de1bc1 (diff) |
Fix some SonarCloud complaints.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'dependencies')
-rw-r--r-- | dependencies/nDPIsrvd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dependencies/nDPIsrvd.h b/dependencies/nDPIsrvd.h index 67fa40b07..486dbaa69 100644 --- a/dependencies/nDPIsrvd.h +++ b/dependencies/nDPIsrvd.h @@ -277,7 +277,7 @@ static inline int nDPIsrvd_base64decode(char const * in, size_t inLen, unsigned while (in < end) { - unsigned char c = d[*(unsigned char *)in++]; + unsigned char c = d[*(unsigned char const *)in++]; switch (c) { @@ -402,8 +402,8 @@ static inline void nDPIsrvd_buffer_free(struct nDPIsrvd_buffer * const buffer) static inline void nDPIsrvd_json_buffer_reset(struct nDPIsrvd_json_buffer * const json_buffer) { - json_buffer->json_message_start = 0ul; - json_buffer->json_message_length = 0ull; + json_buffer->json_message_start = 0UL; + json_buffer->json_message_length = 0ULL; json_buffer->json_message = NULL; } @@ -497,7 +497,7 @@ static inline int nDPIsrvd_set_read_timeout(struct nDPIsrvd_socket * const sock, return 0; } -static inline int nDPIsrvd_set_nonblock(struct nDPIsrvd_socket * const sock) +static inline int nDPIsrvd_set_nonblock(struct nDPIsrvd_socket const * const sock) { int flags; |