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>
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)
{ NULL, 0, 0, NULL },
};
-static struct command *
+static const struct command *
get_all_commands(void)
{
return all_commands;