From 2d6125aab2c7deca41a7689dae14eb32ec909f49 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 22 Jun 2019 10:26:20 +0300 Subject: 11272 libprint: move declaration of ns_kvp_destroy() into ns.h Reviewed by: Gergő Doma Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/lib/print/libprint/common/ns.c | 2 -- usr/src/lib/print/libprint/common/ns.h | 1 + usr/src/lib/print/libprint/common/ns_cmn_printer.c | 2 -- 3 files changed, 1 insertion(+), 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 #include -extern void ns_kvp_destroy(ns_kvp_t *); - /* * Commonly Used routines... */ -- cgit v1.2.3