summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e44ff91)
raw | patch | inline | side by side (parent: e44ff91)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Mar 2016 13:40:06 +0000 (14:40 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Mar 2016 15:41:46 +0000 (16:41 +0100) |
make some variables static while we're at it
src/powerdns.c | patch | blob | history |
diff --git a/src/powerdns.c b/src/powerdns.c
index 0400f3d9748a0d7764f7dda82eb85a6c28e13b2b..ab62dcfdd646ef43077eeb9ce7ac5d17c789fcf7 100644 (file)
--- a/src/powerdns.c
+++ b/src/powerdns.c
struct statname_lookup_s
{
- char *name;
- char *type;
- char *type_instance;
+ const char *name;
+ const char *type;
+ const char *type_instance;
};
typedef struct statname_lookup_s statname_lookup_t;
user-msec number of CPU milliseconds spent in 'user' mode
}}} */
-const char* const default_server_fields[] = /* {{{ */
+static const char* const default_server_fields[] = /* {{{ */
{
"latency",
"packetcache-hit",
"udp-answers",
"udp-queries",
}; /* }}} */
-int default_server_fields_num = STATIC_ARRAY_SIZE (default_server_fields);
+static int default_server_fields_num = STATIC_ARRAY_SIZE (default_server_fields);
-statname_lookup_t lookup_table[] = /* {{{ */
+static statname_lookup_t lookup_table[] = /* {{{ */
{
/*********************
* Server statistics *
{"unexpected-packets", "dns_answer", "unexpected"},
{"uptime", "uptime", NULL}
}; /* }}} */
-int lookup_table_length = STATIC_ARRAY_SIZE (lookup_table);
+static int lookup_table_length = STATIC_ARRAY_SIZE (lookup_table);
static llist_t *list = NULL;