tree-wide: make more global variables static
let's export as little as we can
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ void* mempool_alloc0_tile(struct mempool *mp);
|
||||
void mempool_free_tile(struct mempool *mp, void *p);
|
||||
|
||||
#define DEFINE_MEMPOOL(pool_name, tile_type, alloc_at_least) \
|
||||
struct mempool pool_name = { \
|
||||
static struct mempool pool_name = { \
|
||||
.tile_size = sizeof(tile_type), \
|
||||
.at_least = alloc_at_least, \
|
||||
}
|
||||
|
||||
+2
-2
@@ -72,13 +72,13 @@ static bool arg_batch = false;
|
||||
static bool arg_raw = false;
|
||||
static usec_t arg_delay = 1*USEC_PER_SEC;
|
||||
static char* arg_machine = NULL;
|
||||
static bool arg_recursive = true;
|
||||
|
||||
enum {
|
||||
static enum {
|
||||
COUNT_PIDS,
|
||||
COUNT_USERSPACE_PROCESSES,
|
||||
COUNT_ALL_PROCESSES,
|
||||
} arg_count = COUNT_PIDS;
|
||||
static bool arg_recursive = true;
|
||||
|
||||
static enum {
|
||||
ORDER_PATH,
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#define RC_LOCAL_SCRIPT_PATH_STOP "/sbin/halt.local"
|
||||
#endif
|
||||
|
||||
const char *arg_dest = "/tmp";
|
||||
static const char *arg_dest = "/tmp";
|
||||
|
||||
static int add_symlink(const char *service, const char *where) {
|
||||
_cleanup_free_ char *from = NULL, *to = NULL;
|
||||
|
||||
@@ -70,7 +70,7 @@ static const struct {
|
||||
UP must be read before DOWN */
|
||||
};
|
||||
|
||||
const char *arg_dest = "/tmp";
|
||||
static const char *arg_dest = "/tmp";
|
||||
|
||||
typedef struct SysvStub {
|
||||
char *name;
|
||||
|
||||
Reference in New Issue
Block a user