summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-06-09 22:45:08 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-06-09 22:45:08 +0800
commitdf4a8e8afc7fc56ca16e1c12f3d44e0746d08fb9 (patch)
treed9689d51a740afabb58d662bbfdc35572753c916
parentf0b2e9a73f685df4518e3bc89a5672d9c8ffcd4f (diff)
downloadfastalg-protocol-df4a8e8afc7fc56ca16e1c12f3d44e0746d08fb9.tar.gz
fastalg-protocol-df4a8e8afc7fc56ca16e1c12f3d44e0746d08fb9.tar.zst
fastalg-protocol-df4a8e8afc7fc56ca16e1c12f3d44e0746d08fb9.zip
Explicitly cast the char* to prevent compiler warnings
-rw-r--r--falgproto/falgproto-protocol-dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/falgproto/falgproto-protocol-dns.c b/falgproto/falgproto-protocol-dns.c
index 5f7ed67..467b35d 100644
--- a/falgproto/falgproto-protocol-dns.c
+++ b/falgproto/falgproto-protocol-dns.c
@@ -32,8 +32,8 @@ static inline ssize_t get_question_name (
const char *pkt_s, size_t len, char *out_s) {
/* String length are always unsigned. */
- const unsigned char *pkt = pkt_s;
- unsigned char *out = out_s;
+ const unsigned char *pkt = (const unsigned char*)pkt_s;
+ unsigned char *out = (unsigned char*)out_s;
/* We assume get_question_count are called before this function, so
* we don't get a malformed or truncated packet */