diff options
author | Wlodek Wencel <wlodek@isc.org> | 2022-01-25 18:57:28 +0100 |
---|---|---|
committer | Wlodek Wencel <wlodek@isc.org> | 2022-01-25 18:57:28 +0100 |
commit | e9d37e26897a349f8483092fd0305ea03a97b0e2 (patch) | |
tree | 5ccf3e3afaee5c9cbce00d23db33c4af019de32b /omapip/support.c | |
parent | 8eec892acc041bbdb361d1c1ac36a26b3d3cc2db (diff) | |
parent | 3d53b2f2a0369c2af83c738d4e8194077315cbb4 (diff) | |
download | isc-dhcp-v4_4.tar.gz |
Diffstat (limited to 'omapip/support.c')
-rw-r--r-- | omapip/support.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/omapip/support.c b/omapip/support.c index a6b842ed..4c7adc64 100644 --- a/omapip/support.c +++ b/omapip/support.c @@ -3,7 +3,7 @@ Subroutines providing general support for objects. */ /* - * Copyright (c) 2004-2017 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2022 Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1999-2003 by Internet Software Consortium * * This Source Code Form is subject to the terms of the Mozilla Public @@ -19,8 +19,8 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Internet Systems Consortium, Inc. - * 950 Charter Street - * Redwood City, CA 94063 + * PO Box 360 + * Newmarket, NH 03857 USA * <info@isc.org> * https://www.isc.org/ * @@ -308,7 +308,7 @@ isc_result_t omapi_set_value (omapi_object_t *h, omapi_object_t *outer; isc_result_t status; -#if defined (DEBUG) +#if defined (DEBUG_PROTOCOL) if (!value) { log_info ("omapi_set_value (%.*s, NULL)", (int)name -> len, name -> value); @@ -343,7 +343,7 @@ isc_result_t omapi_set_value (omapi_object_t *h, id, name, value); else status = ISC_R_NOTFOUND; -#if defined (DEBUG) +#if defined (DEBUG_PROTOCOL) log_info (" ==> %s", isc_result_totext (status)); #endif return status; @@ -745,18 +745,18 @@ isc_result_t omapi_make_object_value (omapi_value_t **vp, const char *file, int line) { isc_result_t status; - + status = omapi_value_new (vp, file, line); if (status != ISC_R_SUCCESS) return status; - + status = omapi_data_string_reference (&(*vp) -> name, name, file, line); if (status != ISC_R_SUCCESS) { omapi_value_dereference (vp, file, line); return status; } - + if (value) { status = omapi_typed_data_new (file, line, &(*vp) -> value, omapi_datatype_object, value); @@ -765,7 +765,7 @@ isc_result_t omapi_make_object_value (omapi_value_t **vp, return status; } } - + return ISC_R_SUCCESS; } |