summaryrefslogtreecommitdiff
path: root/server/omapi.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2006-02-27 23:43:30 +0000
committerDavid Hankins <dhankins@isc.org>2006-02-27 23:43:30 +0000
commit00663f8159abffa4ce3dbf1e29cbce17fc92a48c (patch)
tree0cd105447a194cbe0c81b8e8365a86cf2a3fd786 /server/omapi.c
parent88cd8aca9efa1e5b867ac498b98e972638f7aee8 (diff)
downloadisc-dhcp-00663f8159abffa4ce3dbf1e29cbce17fc92a48c.tar.gz
Pass the non-const version of the pointer to memcpy - silence warnings.
Diffstat (limited to 'server/omapi.c')
-rw-r--r--server/omapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/omapi.c b/server/omapi.c
index 41e87f47..b24a773b 100644
--- a/server/omapi.c
+++ b/server/omapi.c
@@ -41,7 +41,7 @@
#ifndef lint
static char copyright[] =
-"$Id: omapi.c,v 1.55 2006/02/24 23:16:32 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
+"$Id: omapi.c,v 1.56 2006/02/27 23:43:30 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -1795,8 +1795,8 @@ class_set_value (omapi_object_t *h,
return ISC_R_NOMEMORY;
class->hash_string.data =
class->hash_string.buffer->data;
- memcpy(class->hash_string.data, value->u.buffer.value,
- value->u.buffer.len);
+ memcpy(class->hash_string.buffer->data,
+ value->u.buffer.value, value->u.buffer.len);
class->hash_string.len = value->u.buffer.len;
} else
return ISC_R_INVALIDARG;