Commit 08b7ea05 authored by linus's avatar linus Committed by linus

(tlv2buf): Make TLV const.


git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@545 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent bd55e739
......@@ -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" */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment