diff options
author | Pavel Roskin <proski@gnu.org> | 2011-08-04 11:59:03 -0400 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-08-11 14:49:51 +0200 |
commit | 7701c8572fa4bf23f0cbd652ee3e347f6924ac94 (patch) | |
tree | 7bf9e66e091ec30e57d767d80dc2c737e756c1a3 /src | |
parent | f9993836ed0cb0359e486daa50f72c889f81a36a (diff) | |
download | libnl-7701c8572fa4bf23f0cbd652ee3e347f6924ac94.tar.gz |
Make some functions and global variables static
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tc.c | 2 | ||||
-rw-r--r-- | src/nl-addr-list.c | 2 | ||||
-rw-r--r-- | src/nl-class-delete.c | 2 | ||||
-rw-r--r-- | src/nl-class-list.c | 4 | ||||
-rw-r--r-- | src/nl-cls-delete.c | 2 | ||||
-rw-r--r-- | src/nl-cls-list.c | 4 | ||||
-rw-r--r-- | src/nl-neigh-delete.c | 2 | ||||
-rw-r--r-- | src/nl-qdisc-delete.c | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/tc.c b/src/lib/tc.c index 4cdd081..26124f1 100644 --- a/src/lib/tc.c +++ b/src/lib/tc.c @@ -94,7 +94,7 @@ void nl_cli_tc_parse_linktype(struct rtnl_tc *tc, char *arg) static NL_LIST_HEAD(tc_modules); -struct nl_cli_tc_module *__nl_cli_tc_lookup(struct rtnl_tc_ops *ops) +static struct nl_cli_tc_module *__nl_cli_tc_lookup(struct rtnl_tc_ops *ops) { struct nl_cli_tc_module *tm; diff --git a/src/nl-addr-list.c b/src/nl-addr-list.c index 9b045a5..5044d5c 100644 --- a/src/nl-addr-list.c +++ b/src/nl-addr-list.c @@ -41,7 +41,7 @@ static void print_usage(void) static char *prefix; -void print_prefix(struct nl_dump_params *p, int line) +static void print_prefix(struct nl_dump_params *p, int line) { if (prefix) nl_dump(p, "%s", prefix); diff --git a/src/nl-class-delete.c b/src/nl-class-delete.c index 3df5a9a..37657a4 100644 --- a/src/nl-class-delete.c +++ b/src/nl-class-delete.c @@ -14,7 +14,7 @@ #include <netlink/cli/link.h> static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0; -struct nl_sock *sock; +static struct nl_sock *sock; static void print_usage(void) { diff --git a/src/nl-class-list.c b/src/nl-class-list.c index 44ca49b..c2423fb 100644 --- a/src/nl-class-list.c +++ b/src/nl-class-list.c @@ -14,9 +14,9 @@ #include <netlink/cli/class.h> #include <netlink/cli/link.h> -struct nl_sock *sock; +static struct nl_sock *sock; -struct nl_dump_params params = { +static struct nl_dump_params params = { .dp_type = NL_DUMP_LINE, }; diff --git a/src/nl-cls-delete.c b/src/nl-cls-delete.c index 7d998fd..2b3db1f 100644 --- a/src/nl-cls-delete.c +++ b/src/nl-cls-delete.c @@ -14,7 +14,7 @@ #include <netlink/cli/link.h> static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0; -struct nl_sock *sock; +static struct nl_sock *sock; static void print_usage(void) { diff --git a/src/nl-cls-list.c b/src/nl-cls-list.c index fcb5dcb..5072585 100644 --- a/src/nl-cls-list.c +++ b/src/nl-cls-list.c @@ -14,9 +14,9 @@ #include <netlink/cli/cls.h> #include <netlink/cli/link.h> -struct nl_sock *sock; +static struct nl_sock *sock; -struct nl_dump_params params = { +static struct nl_dump_params params = { .dp_type = NL_DUMP_LINE, }; diff --git a/src/nl-neigh-delete.c b/src/nl-neigh-delete.c index 887bd84..c418608 100644 --- a/src/nl-neigh-delete.c +++ b/src/nl-neigh-delete.c @@ -14,7 +14,7 @@ #include <netlink/cli/link.h> static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0; -struct nl_sock *sock; +static struct nl_sock *sock; static void print_usage(void) { diff --git a/src/nl-qdisc-delete.c b/src/nl-qdisc-delete.c index 9c7ec14..2f945bb 100644 --- a/src/nl-qdisc-delete.c +++ b/src/nl-qdisc-delete.c @@ -15,7 +15,7 @@ #include <netlink/cli/link.h> static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0; -struct nl_sock *sock; +static struct nl_sock *sock; static void print_usage(void) { |