Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netsmb const-poison a bit
details: https://anonhg.NetBSD.org/src/rev/2bce39001507
branches: trunk
changeset: 543417:2bce39001507
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Feb 24 19:32:16 2003 +0000
description:
const-poison a bit
diffstat:
sys/netsmb/smb_smb.c | 13 +++++++------
sys/netsmb/smb_subr.c | 4 ++--
sys/netsmb/smb_subr.h | 4 ++--
3 files changed, 11 insertions(+), 10 deletions(-)
diffs (79 lines):
diff -r d3d0a620d9b8 -r 2bce39001507 sys/netsmb/smb_smb.c
--- a/sys/netsmb/smb_smb.c Mon Feb 24 19:31:45 2003 +0000
+++ b/sys/netsmb/smb_smb.c Mon Feb 24 19:32:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smb_smb.c,v 1.3 2002/01/04 02:39:44 deberg Exp $ */
+/* $NetBSD: smb_smb.c,v 1.4 2003/02/24 19:32:16 jdolecek Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -55,11 +55,11 @@
#include <netsmb/smb_tran.h>
struct smb_dialect {
- int d_id;
- const char * d_name;
+ int d_id;
+ const char *d_name;
};
-static struct smb_dialect smb_dialects[] = {
+static const struct smb_dialect smb_dialects[] = {
{SMB_DIALECT_CORE, "PC NETWORK PROGRAM 1.0"},
{SMB_DIALECT_COREPLUS, "MICROSOFT NETWORKS 1.03"},
{SMB_DIALECT_LANMAN1_0, "MICROSOFT NETWORKS 3.0"},
@@ -85,7 +85,7 @@
int
smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred)
{
- struct smb_dialect *dp;
+ const struct smb_dialect *dp;
struct smb_sopt *sp = NULL;
struct smb_rq *rqp;
struct mbchain *mbp;
@@ -234,7 +234,8 @@
struct mbchain *mbp;
/* u_int8_t wc;
u_int16_t tw, tw1;*/
- smb_uniptr unipp, ntencpass = NULL;
+ const smb_unichar *unipp;
+ smb_uniptr ntencpass = NULL;
char *pp, *up, *pbuf, *encpass;
int error, plen, uniplen, ulen;
diff -r d3d0a620d9b8 -r 2bce39001507 sys/netsmb/smb_subr.c
--- a/sys/netsmb/smb_subr.c Mon Feb 24 19:31:45 2003 +0000
+++ b/sys/netsmb/smb_subr.c Mon Feb 24 19:32:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smb_subr.c,v 1.9 2003/02/21 19:55:14 jdolecek Exp $ */
+/* $NetBSD: smb_subr.c,v 1.10 2003/02/24 19:32:16 jdolecek Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -53,7 +53,7 @@
#include <netsmb/smb_rq.h>
#include <netsmb/smb_subr.h>
-smb_unichar smb_unieol = 0;
+const smb_unichar smb_unieol = 0;
static MALLOC_DEFINE(M_SMBSTR, "smbstr", "SMB strings");
MALLOC_DEFINE(M_SMBTEMP, "smbtemp", "Temp netsmb data");
diff -r d3d0a620d9b8 -r 2bce39001507 sys/netsmb/smb_subr.h
--- a/sys/netsmb/smb_subr.h Mon Feb 24 19:31:45 2003 +0000
+++ b/sys/netsmb/smb_subr.h Mon Feb 24 19:32:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smb_subr.h,v 1.6 2003/02/16 19:48:10 jdolecek Exp $ */
+/* $NetBSD: smb_subr.h,v 1.7 2003/02/24 19:32:16 jdolecek Exp $ */
/*
* Copyright (c) 2000-2001, Boris Popov
@@ -135,7 +135,7 @@
struct ucred * scr_cred;
};
-extern smb_unichar smb_unieol;
+extern const smb_unichar smb_unieol;
struct mbchain;
struct smb_vc;
Home |
Main Index |
Thread Index |
Old Index