diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-07 01:35:11 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-02 17:27:05 +0400 |
commit | 94e7cd90feb6af51b7e21d5289dc0edc1ba94a99 (patch) | |
tree | 5bb3b96f954826535d5c32376684844523284b49 /lib/distribute.c | |
parent | 4f5e717413b6627310a245d16f945660c9d60736 (diff) |
Revert "lib: address -Wunused-but-set-variable"
Stephen Hemminger's commits contain all the changes and
several other warning fixes.
This reverts commit 6947dbebdc91b6272f8107a6e0dd211457438606.
Diffstat (limited to 'lib/distribute.c')
-rw-r--r-- | lib/distribute.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index 056cd401..7f84b80e 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -304,6 +304,7 @@ DEFUN (distribute_list_all, "Filter outgoing routing updates\n") { enum distribute_type type; + struct distribute *dist; /* Check of distribute list type. */ if (strncmp (argv[1], "i", 1) == 0) @@ -318,7 +319,7 @@ DEFUN (distribute_list_all, } /* Get interface name corresponding distribute list. */ - distribute_list_set (NULL, type, argv[0]); + dist = distribute_list_set (NULL, type, argv[0]); return CMD_SUCCESS; } @@ -383,6 +384,7 @@ DEFUN (distribute_list, "Interface name\n") { enum distribute_type type; + struct distribute *dist; /* Check of distribute list type. */ if (strncmp (argv[1], "i", 1) == 0) @@ -396,7 +398,7 @@ DEFUN (distribute_list, } /* Get interface name corresponding distribute list. */ - distribute_list_set (argv[2], type, argv[0]); + dist = distribute_list_set (argv[2], type, argv[0]); return CMD_SUCCESS; } @@ -461,6 +463,7 @@ DEFUN (distribute_list_prefix_all, "Filter outgoing routing updates\n") { enum distribute_type type; + struct distribute *dist; /* Check of distribute list type. */ if (strncmp (argv[1], "i", 1) == 0) @@ -475,7 +478,7 @@ DEFUN (distribute_list_prefix_all, } /* Get interface name corresponding distribute list. */ - distribute_list_prefix_set (NULL, type, argv[0]); + dist = distribute_list_prefix_set (NULL, type, argv[0]); return CMD_SUCCESS; } @@ -543,6 +546,7 @@ DEFUN (distribute_list_prefix, distribute_list_prefix_cmd, "Interface name\n") { enum distribute_type type; + struct distribute *dist; /* Check of distribute list type. */ if (strncmp (argv[1], "i", 1) == 0) @@ -557,7 +561,7 @@ DEFUN (distribute_list_prefix, distribute_list_prefix_cmd, } /* Get interface name corresponding distribute list. */ - distribute_list_prefix_set (argv[2], type, argv[0]); + dist = distribute_list_prefix_set (argv[2], type, argv[0]); return CMD_SUCCESS; } |