summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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...
*/