X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tlv11.c;h=5697c1be6a5a2e9007eb480449f28d3d2c34c546;hb=c562df4b073a288862dd3c4ceaba7d6439f33b45;hp=2593c15ee4de910741a9f4fe32af54bb69823d16;hpb=faf8717dcbc9c2e3ed1892402133b6c9663a5e7d;p=radsecproxy.git diff --git a/tlv11.c b/tlv11.c index 2593c15..5697c1b 100644 --- a/tlv11.c +++ b/tlv11.c @@ -6,7 +6,11 @@ * copyright notice and this permission notice appear in all copies. */ +#ifdef SYS_SOLARIS9 +#include +#else #include +#endif #include "list.h" #include "tlv11.h" #include @@ -105,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) { @@ -116,3 +120,7 @@ uint8_t *tlv2buf(uint8_t *p, struct tlv *tlv) { } return p; } + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */