summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-06-22 10:26:20 +0300
committerToomas Soome <tsoome@me.com>2019-06-25 23:39:40 +0300
commit2d6125aab2c7deca41a7689dae14eb32ec909f49 (patch)
tree68c827eb2eb97ce171299df649dc15f29cdc1b3e
parent1998b0812b5fb5da180a47adadb55cc844465828 (diff)
downloadillumos-joyent-2d6125aab2c7deca41a7689dae14eb32ec909f49.tar.gz
11272 libprint: move declaration of ns_kvp_destroy() into ns.h
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/lib/print/libprint/common/ns.c2
-rw-r--r--usr/src/lib/print/libprint/common/ns.h1
-rw-r--r--usr/src/lib/print/libprint/common/ns_cmn_printer.c2
3 files changed, 1 insertions, 4 deletions
diff --git a/usr/src/lib/print/libprint/common/ns.c b/usr/src/lib/print/libprint/common/ns.c
index 943be31e95..2384b5c129 100644
--- a/usr/src/lib/print/libprint/common/ns.c
+++ b/usr/src/lib/print/libprint/common/ns.c
@@ -78,8 +78,6 @@ ns_printer_destroy(ns_printer_t *printer)
{
if (printer != NULL) {
if (printer->attributes != NULL) { /* attributes */
- extern void ns_kvp_destroy(ns_kvp_t *);
-
list_iterate((void **)printer->attributes,
(VFUNC_T)ns_kvp_destroy);
free(printer->attributes);
diff --git a/usr/src/lib/print/libprint/common/ns.h b/usr/src/lib/print/libprint/common/ns.h
index 84d16f7ceb..0171b85b4b 100644
--- a/usr/src/lib/print/libprint/common/ns.h
+++ b/usr/src/lib/print/libprint/common/ns.h
@@ -178,6 +178,7 @@ extern int ns_set_value(const char *, const void *, ns_printer_t *);
extern int ns_set_value_from_string(const char *, const char *,
ns_printer_t *);
extern ns_kvp_t *ns_kvp_create(const char *, const char *);
+extern void ns_kvp_destroy(ns_kvp_t *);
/* for BSD bindings only */
extern ns_bsd_addr_t *ns_bsd_addr_get_default();
diff --git a/usr/src/lib/print/libprint/common/ns_cmn_printer.c b/usr/src/lib/print/libprint/common/ns_cmn_printer.c
index 25e344b3c4..d289245e11 100644
--- a/usr/src/lib/print/libprint/common/ns_cmn_printer.c
+++ b/usr/src/lib/print/libprint/common/ns_cmn_printer.c
@@ -38,8 +38,6 @@
#include <ns.h>
#include <list.h>
-extern void ns_kvp_destroy(ns_kvp_t *);
-
/*
* Commonly Used routines...
*/