Skip to content

Commit

Permalink
(tlv2buf): Make TLV const.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@545 e88ac4ed-0b26-0410-9574-a7f39faa03bf
  • Loading branch information
linus authored and linus committed Mar 31, 2010
1 parent bd55e73 commit 08b7ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tlv11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tlv11.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" */
Expand Down

0 comments on commit 08b7ea0

Please sign in to comment.