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/if_rmap.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/if_rmap.c')
-rw-r--r-- | lib/if_rmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c index b49d2669..ddc62fd5 100644 --- a/lib/if_rmap.c +++ b/lib/if_rmap.c @@ -212,6 +212,7 @@ DEFUN (if_rmap, "Route map interface name\n") { enum if_rmap_type type; + struct if_rmap *if_rmap; if (strncmp (argv[1], "i", 1) == 0) type = IF_RMAP_IN; @@ -223,7 +224,7 @@ DEFUN (if_rmap, return CMD_WARNING; } - if_rmap_set (argv[2], type, argv[0]); + if_rmap = if_rmap_set (argv[2], type, argv[0]); return CMD_SUCCESS; } |