Mark global functions and/or variables in memcontrol(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.
This commit is contained in:
Ed Schouten 2011-11-06 19:01:59 +00:00
parent d938340a93
commit 6ea612c7ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227254

View File

@ -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 argc, char *argv[]);
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[]);