summaryrefslogtreecommitdiff
path: root/omapip/support.c
diff options
context:
space:
mode:
Diffstat (limited to 'omapip/support.c')
-rw-r--r--omapip/support.c18
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;
}