tree-wide: make more global variables static

let's export as little as we can
This commit is contained in:
Lennart Poettering
2016-02-13 12:28:28 +01:00
parent 1d9b8e5834
commit dd422d1e5b
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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,
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;