diff options
-rw-r--r-- | tlv11.c | 2 | ||||
-rw-r--r-- | tlv11.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -109,7 +109,7 @@ uint8_t *tlv2str(struct tlv *tlv) { return s; } -uint8_t *tlv2buf(uint8_t *p, struct tlv *tlv) { +uint8_t *tlv2buf(uint8_t *p, const struct tlv *tlv) { *p++ = tlv->t; *p++ = tlv->l; if (tlv->l) { @@ -20,7 +20,7 @@ struct list *copytlvlist(struct list *); void freetlvlist(struct list *); void rmtlv(struct list *, uint8_t); uint8_t *tlv2str(struct tlv *tlv); -uint8_t *tlv2buf(uint8_t *, struct tlv *tlv); +uint8_t *tlv2buf(uint8_t *, const struct tlv *tlv); /* Local Variables: */ /* c-file-style: "stroustrup" */ |