#ifdef TEST_PROGRAM
-struct libmnt_lock *lock;
+static struct libmnt_lock *lock;
static void lock_fallback(void)
{
#ifdef TEST_PROGRAM
-struct libmnt_lock *lock;
+static struct libmnt_lock *lock;
/*
* read number from @filename, increment the number and
#define LOG(level,args) if (loglev >= level) { fprintf args; }
-size_t nprocesses = 4;
-size_t nthreads = 4;
-size_t nobjects = 4096;
-size_t loglev = 1;
+static size_t nprocesses = 4;
+static size_t nthreads = 4;
+static size_t nobjects = 4096;
+static size_t loglev = 1;
struct processentry {
pid_t pid;
#include "bitops.h"
-uint16_t ary16[] = {
+static uint16_t ary16[] = {
0x0001, 0x0100,
0x1234, 0x3412,
0xff00, 0x00ff,
0x0000, 0x0000
};
-uint32_t ary32[] = {
+static uint32_t ary32[] = {
0x00000001, 0x01000000,
0x80000000, 0x00000080,
0x12345678, 0x78563412,
0x00000000, 0x00000000
};
-uint64_t ary64[] = {
+static uint64_t ary64[] = {
0x0000000000000001, 0x0100000000000000,
0x8000000000000000, 0x0000000000000080,
0x1234567812345678, 0x7856341278563412,
#define DEF_HLPPATH(_p) { #_p, _p }
-struct hlpPath paths[] =
+static struct hlpPath paths[] =
{
DEF_HLPPATH(_PATH_DEFPATH),
DEF_HLPPATH(_PATH_DEFPATH_ROOT),