From 64995097ddeb829369956241db91fd1cb4040ea8 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 16 Oct 2011 08:44:03 +0000 Subject: [PATCH] Change ncp_scan_bindery_object() to pass a constant search string. The ncp_scan_bindery_object() function does not modify search_string internally, so there is no need to declare it as `char *'. --- lib/libncp/ncpl_bind.c | 2 +- sys/netncp/ncp_lib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libncp/ncpl_bind.c b/lib/libncp/ncpl_bind.c index d7c64ede86c4..d00cfa8376c2 100644 --- a/lib/libncp/ncpl_bind.c +++ b/lib/libncp/ncpl_bind.c @@ -85,7 +85,7 @@ ncp_read_property_value(NWCONN_HANDLE connid, int object_type, int ncp_scan_bindery_object(NWCONN_HANDLE connid, u_int32_t last_id, - u_int16_t object_type, char *search_string, + u_int16_t object_type, const char *search_string, struct ncp_bindery_object *target) { int error; diff --git a/sys/netncp/ncp_lib.h b/sys/netncp/ncp_lib.h index 2e8eebe767a5..275b53b5c9a9 100644 --- a/sys/netncp/ncp_lib.h +++ b/sys/netncp/ncp_lib.h @@ -174,7 +174,7 @@ int ncp_get_bindery_object_id(NWCONN_HANDLE, u_int16_t, const char *, int ncp_get_bindery_object_name(NWCONN_HANDLE, u_int32_t, struct ncp_bindery_object *); int ncp_scan_bindery_object(NWCONN_HANDLE, u_int32_t, u_int16_t, - char *, struct ncp_bindery_object *); + const char *, struct ncp_bindery_object *); int ncp_read_property_value(NWCONN_HANDLE, int object_type, const char *, int, const char *, struct nw_property *); int ncp_get_encryption_key(NWCONN_HANDLE, char *);