examples/bond: fix build with clang
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 18 May 2015 08:17:58 +0000 (10:17 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 19 May 2015 15:35:33 +0000 (17:35 +0200)
Fix the following compilation error:

examples/bond/main.c:717:1: error: control reaches end of
  non-void function [-Werror,-Wreturn-type]

The prompt() function does not return anything, so fix its prototype
to be void.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
examples/bond/main.c

index e90dc1d..4622283 100644 (file)
@@ -705,7 +705,7 @@ cmdline_parse_ctx_t main_ctx[] = {
 };
 
 /* prompt function, called from main on MASTER lcore */
-static void *prompt(__attribute__((unused)) void *arg1)
+static void prompt(__attribute__((unused)) void *arg1)
 {
        struct cmdline *cl;