summaryrefslogtreecommitdiff
path: root/tests/test-reconnect.c
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2014-04-04 09:58:28 -0700
committerAlex Wang <alexw@nicira.com>2014-04-04 10:22:01 -0700
commit976bf71268824a7d2463de3086d3372173dc59fc (patch)
tree9a36985fa87451881804a9335822bc51aedebd8f /tests/test-reconnect.c
parent5e314e8e771345c11df811fc45d584911cbc1642 (diff)
downloadopenvswitch-976bf71268824a7d2463de3086d3372173dc59fc.tar.gz
test-reconnect: Fix a warning.
This commit fixes the "return discards 'const' qualifier from pointer target type" warning issued when compiling test-reconnect.c. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/test-reconnect.c')
-rw-r--r--tests/test-reconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-reconnect.c b/tests/test-reconnect.c
index 286405187..35d5f4175 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;