Constness.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1882 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-06-10 12:53:28 +00:00
parent 167ac05237
commit 415cbbf252
3 changed files with 6 additions and 6 deletions

View File

@@ -3,14 +3,14 @@
RCSID("$Id$");
void
copy_general_string (general_string *from, general_string *to)
copy_general_string (const general_string *from, general_string *to)
{
*to = malloc(strlen(*from) + 1);
strcpy(*to, *from);
}
void
copy_octet_string (octet_string *from, octet_string *to)
copy_octet_string (const octet_string *from, octet_string *to)
{
to->length = from->length;
to->data = malloc(to->length);