Author: ed
Date: Sun Nov 6 19:01:59 2011
New Revision: 227254
URL: http://svn.freebsd.org/changeset/base/227254
Log:
Mark global functions and/or variables in memcontrol(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Modified:
head/usr.sbin/memcontrol/memcontrol.c
Modified: head/usr.sbin/memcontrol/memcontrol.c
==============================================================================
--- head/usr.sbin/memcontrol/memcontrol.c Sun Nov 6 19:01:54 2011
(r227253)
+++ head/usr.sbin/memcontrol/memcontrol.c Sun Nov 6 19:01:59 2011
(r227254)
@@ -39,8 +39,7 @@
#include <string.h>
#include <unistd.h>
-struct
-{
+static struct {
const char *name;
int val;
int kind;
@@ -67,8 +66,7 @@ static void clearfunc(int memfd, int arg
static void helpfunc(int memfd, int argc, char *argv[]);
static void help(const char *what);
-struct
-{
+static struct {
const char *cmd;
const char *desc;
void (*func)(int memfd, int argc, char *argv[]);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"