summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_nls.c
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2001-03-10 05:24:45 +0000
committerbp <bp@FreeBSD.org>2001-03-10 05:24:45 +0000
commitdde32853641c8191e1074cc8a3d9b3ae9facfa27 (patch)
tree3496a4f9320d911a7b3ce90b4c45fe032119f1d2 /sys/netncp/ncp_nls.c
parent04dc7092d8850e0118c795388fd40cbe91ee027e (diff)
downloadFreeBSD-src-dde32853641c8191e1074cc8a3d9b3ae9facfa27.zip
FreeBSD-src-dde32853641c8191e1074cc8a3d9b3ae9facfa27.tar.gz
Major update of NCP requester:
Use mchain API to work with mbuf chains. Do not depend on INET and IPX options. Allocate ncp_rq structure dynamically to prevent possible stack overflows. Let ncp_request() dispose control structure if request failed. Move all NCP wrappers to ncp_ncp.c file and all NCP request processing functions to ncp_rq.c file. Improve reconnection logic. Misc style fixes.
Diffstat (limited to 'sys/netncp/ncp_nls.c')
-rw-r--r--sys/netncp/ncp_nls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netncp/ncp_nls.c b/sys/netncp/ncp_nls.c
index 3c7892f..ccbf3cc 100644
--- a/sys/netncp/ncp_nls.c
+++ b/sys/netncp/ncp_nls.c
@@ -237,7 +237,8 @@ ncp_pathcheck(char *s, int len, struct ncp_nlstables *nt, int strict) {
* leave it as is.
*/
void
-ncp_pathcopy(char *src, char *dst, int len, struct ncp_nlstables *nt) {
+ncp_pathcopy(const char *src, char *dst, int len, struct ncp_nlstables *nt)
+{
int donls;
u_char c;
/* char *d = dst, *s = src;*/
OpenPOWER on IntegriCloud