This commit fixes the "return discards 'const' qualifier
from pointer target type" warning issued when compiling
test-reconnect.c.

Signed-off-by: Alex Wang <al...@nicira.com>
---
 tests/test-reconnect.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-reconnect.c b/tests/test-reconnect.c
index 2864051..35d5f41 100644
--- a/tests/test-reconnect.c
+++ b/tests/test-reconnect.c
@@ -36,7 +36,7 @@ static int now;
 static void diff_stats(const struct reconnect_stats *old,
                        const struct reconnect_stats *new,
                        int delta);
-static struct command *get_all_commands(void);
+static const struct command *get_all_commands(void);
 
 static void
 test_reconnect_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)
@@ -289,7 +289,7 @@ static const struct command all_commands[] = {
     { NULL, 0, 0, NULL },
 };
 
-static struct command *
+static const struct command *
 get_all_commands(void)
 {
     return all_commands;
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to