summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-27 22:05:13 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-27 22:05:13 +0200
commitb7c145daa49bfbd36263bf617faad382bbaf9df9 (patch)
treed99d62e0c14b3033d1e25fbcc309f843b2b32f63
parentaaae8c76496a97050264e4c49e539b0420496737 (diff)
Fix compiler warning
In file included from asn1helpers.c:14:0: ../include/asn1c/asn1helpers.h: In function ‘OCTET_STRING_noalloc’: ../include/asn1c/asn1helpers.h:26:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] s->buf = str; ^ Change-Id: Ie2fefe710090de779137c36b98239ef4a097b6dd
-rw-r--r--include/asn1c/asn1helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asn1c/asn1helpers.h b/include/asn1c/asn1helpers.h
index d6b5e18..2cfc000 100644
--- a/include/asn1c/asn1helpers.h
+++ b/include/asn1c/asn1helpers.h
@@ -23,6 +23,6 @@ uint32_t asn1bitstr_to_u24(const BIT_STRING_t *in);
static inline void OCTET_STRING_noalloc(OCTET_STRING_t *s, const uint8_t *str, int size)
{
- s->buf = str;
+ s->buf = (uint8_t *) str;
s->size = size;
}