mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
d938340a93
commit
6ea612c7ab
1 changed files with 2 additions and 4 deletions
|
|
@ -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[]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue