diff options
author | bp <bp@FreeBSD.org> | 1999-10-31 03:39:03 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 1999-10-31 03:39:03 +0000 |
commit | c763e1b076eb84b549b0ef6eacfb693115ad652d (patch) | |
tree | 25eb0b1c241046eb4a80842143d329050fa11867 /lib/libncp/ncpl_bind.c | |
parent | b57c214bcc798094ac9d02b7cd0fb77213049fe7 (diff) | |
download | FreeBSD-src-c763e1b076eb84b549b0ef6eacfb693115ad652d.zip FreeBSD-src-c763e1b076eb84b549b0ef6eacfb693115ad652d.tar.gz |
Add support for C++ in the headers. Some style cleanup.
Pointed by: bde
Diffstat (limited to 'lib/libncp/ncpl_bind.c')
-rw-r--r-- | lib/libncp/ncpl_bind.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/libncp/ncpl_bind.c b/lib/libncp/ncpl_bind.c index 40d0b73..53c4c31 100644 --- a/lib/libncp/ncpl_bind.c +++ b/lib/libncp/ncpl_bind.c @@ -39,8 +39,9 @@ static void nw_passencrypt(char *old, char *new, char *out); int -ncp_get_bindery_object_id(int connid, u_int16_t object_type, const char *object_name, - struct ncp_bindery_object *target) { +ncp_get_bindery_object_id(NWCONN_HANDLE connid, u_int16_t object_type, + const char *object_name, struct ncp_bindery_object *target) +{ int error; DECLARE_RQ; @@ -61,9 +62,9 @@ ncp_get_bindery_object_id(int connid, u_int16_t object_type, const char *object_ } int -ncp_read_property_value(int connid, int object_type, const char *object_name, - int segment, const char *prop_name, - struct nw_property *target) +ncp_read_property_value(NWCONN_HANDLE connid, int object_type, + const char *object_name, int segment, const char *prop_name, + struct nw_property *target) { int error; struct ncp_buf conn; @@ -83,8 +84,9 @@ ncp_read_property_value(int connid, int object_type, const char *object_name, } int -ncp_scan_bindery_object(int connid, u_int32_t last_id, u_int16_t object_type, - char *search_string, struct ncp_bindery_object *target) +ncp_scan_bindery_object(NWCONN_HANDLE connid, u_int32_t last_id, + u_int16_t object_type, char *search_string, + struct ncp_bindery_object *target) { int error; DECLARE_RQ; @@ -105,8 +107,9 @@ ncp_scan_bindery_object(int connid, u_int32_t last_id, u_int16_t object_type, } int -ncp_get_bindery_object_name(int connid, u_int32_t object_id, - struct ncp_bindery_object *target) { +ncp_get_bindery_object_name(NWCONN_HANDLE connid, u_int32_t object_id, + struct ncp_bindery_object *target) +{ int error; DECLARE_RQ; @@ -175,7 +178,8 @@ ncp_get_encryption_key(NWCONN_HANDLE cH, char *target) { int ncp_keyed_verify_password(NWCONN_HANDLE cH, char *key, char *passwd, - struct ncp_bindery_object *objinfo) { + struct ncp_bindery_object *objinfo) +{ u_long id = htonl(objinfo->object_id); u_char cryptkey[8]; u_char buf[128]; |