Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2011 08:44:04 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226425 - in head: lib/libncp sys/netncp
Message-ID:  <201110160844.p9G8i4kX053438@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Oct 16 08:44:03 2011
New Revision: 226425
URL: http://svn.freebsd.org/changeset/base/226425

Log:
  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 *'.

Modified:
  head/lib/libncp/ncpl_bind.c
  head/sys/netncp/ncp_lib.h

Modified: head/lib/libncp/ncpl_bind.c
==============================================================================
--- head/lib/libncp/ncpl_bind.c	Sun Oct 16 08:36:10 2011	(r226424)
+++ head/lib/libncp/ncpl_bind.c	Sun Oct 16 08:44:03 2011	(r226425)
@@ -85,7 +85,7 @@ ncp_read_property_value(NWCONN_HANDLE co
 
 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;

Modified: head/sys/netncp/ncp_lib.h
==============================================================================
--- head/sys/netncp/ncp_lib.h	Sun Oct 16 08:36:10 2011	(r226424)
+++ head/sys/netncp/ncp_lib.h	Sun Oct 16 08:44:03 2011	(r226425)
@@ -174,7 +174,7 @@ int  ncp_get_bindery_object_id(NWCONN_HA
 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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110160844.p9G8i4kX053438>