aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-11-07 06:44:47 +0000
committerEd Schouten <ed@FreeBSD.org>2011-11-07 06:44:47 +0000
commitd745c852becf3792a2185003947324721209195a (patch)
tree3278fb8afc568f22cc5eda0e74926191fc1857df /sys/netsmb
parentfd1ca22afbc91a5524d01df9d38afecf3178a149 (diff)
downloadsrc-d745c852becf3792a2185003947324721209195a.tar.gz
src-d745c852becf3792a2185003947324721209195a.zip
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.
This means that their use is restricted to a single C file.
Notes
Notes: svn path=/head/; revision=227293
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_conn.c2
-rw-r--r--sys/netsmb/smb_rq.c2
-rw-r--r--sys/netsmb/smb_subr.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/netsmb/smb_conn.c b/sys/netsmb/smb_conn.c
index c14cb8b0c2b2..2095eb19ef55 100644
--- a/sys/netsmb/smb_conn.c
+++ b/sys/netsmb/smb_conn.c
@@ -54,7 +54,7 @@ static int smb_vcnext = 1; /* next unique id for VC */
SYSCTL_NODE(_net, OID_AUTO, smb, CTLFLAG_RW, NULL, "SMB protocol");
-MALLOC_DEFINE(M_SMBCONN, "smb_conn", "SMB connection");
+static MALLOC_DEFINE(M_SMBCONN, "smb_conn", "SMB connection");
static void smb_co_init(struct smb_connobj *cp, int level, char *ilockname,
char *lockname);
diff --git a/sys/netsmb/smb_rq.c b/sys/netsmb/smb_rq.c
index 4f5c5e63e42b..566a25211558 100644
--- a/sys/netsmb/smb_rq.c
+++ b/sys/netsmb/smb_rq.c
@@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
#include <netsmb/smb_subr.h>
#include <netsmb/smb_tran.h>
-MALLOC_DEFINE(M_SMBRQ, "SMBRQ", "SMB request");
+static MALLOC_DEFINE(M_SMBRQ, "SMBRQ", "SMB request");
MODULE_DEPEND(netsmb, libmchain, 1, 1, 1);
diff --git a/sys/netsmb/smb_subr.c b/sys/netsmb/smb_subr.c
index ade9e17dcb7b..c92f865fee86 100644
--- a/sys/netsmb/smb_subr.c
+++ b/sys/netsmb/smb_subr.c
@@ -46,8 +46,8 @@ __FBSDID("$FreeBSD$");
#include <netsmb/smb_rq.h>
#include <netsmb/smb_subr.h>
-MALLOC_DEFINE(M_SMBDATA, "SMBDATA", "Misc netsmb data");
-MALLOC_DEFINE(M_SMBSTR, "SMBSTR", "netsmb string data");
+static MALLOC_DEFINE(M_SMBDATA, "SMBDATA", "Misc netsmb data");
+static MALLOC_DEFINE(M_SMBSTR, "SMBSTR", "netsmb string data");
MALLOC_DEFINE(M_SMBTEMP, "SMBTEMP", "Temp netsmb data");
smb_unichar smb_unieol = 0;