From 9db6826662ba44c8e865460da9fdd9a826c6ecd0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 23 Aug 2014 09:21:40 +0200 Subject: [PATCH] remove unused static function, fix missing include for gcc. --- src/kernel/order.c | 6 ------ src/kernel/order.test.c | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/kernel/order.c b/src/kernel/order.c index d83c6967b..63048626b 100644 --- a/src/kernel/order.c +++ b/src/kernel/order.c @@ -560,12 +560,6 @@ void push_order(order ** ordp, order * ord) *ordp = ord; } -static char *getcommand(const order * ord) -{ - char cmd[ORDERSIZE]; - return _strdup(get_command(ord, cmd, sizeof(cmd))); -} - keyword_t init_order(const struct order *ord) { char *cmd = 0; diff --git a/src/kernel/order.test.c b/src/kernel/order.test.c index 1f2de0e80..1d556c622 100644 --- a/src/kernel/order.test.c +++ b/src/kernel/order.test.c @@ -1,3 +1,4 @@ +#include #include #include #include "order.h" @@ -7,6 +8,7 @@ #include #include +#include static void test_create_order(CuTest *tc) { char cmd[32];