diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2014-06-09 22:45:08 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2014-06-09 22:45:08 +0800 |
commit | df4a8e8afc7fc56ca16e1c12f3d44e0746d08fb9 (patch) | |
tree | d9689d51a740afabb58d662bbfdc35572753c916 | |
parent | f0b2e9a73f685df4518e3bc89a5672d9c8ffcd4f (diff) | |
download | fastalg-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.c | 4 |
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 */ |