X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tlv11.c;h=94768cf655070124792507aa449d51c3aa15c3cd;hb=refs%2Fheads%2Fmaint-1.6;hp=d5d66aa68c18591e18232beda445bba0053b81c0;hpb=6f3af9861a7eab73df328b6946edd86fdc3b7693;p=libradsec.git diff --git a/tlv11.c b/tlv11.c index d5d66aa..94768cf 100644 --- a/tlv11.c +++ b/tlv11.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2008 Stig Venaas + * Copyright (C) 2010 NORDUnet A/S * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -109,7 +110,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) { @@ -120,3 +121,7 @@ uint8_t *tlv2buf(uint8_t *p, struct tlv *tlv) { } return p; } + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */