remove unused static function, fix missing include for gcc.

This commit is contained in:
Enno Rehling 2014-08-23 09:21:40 +02:00
parent ad903e83e3
commit 9db6826662
2 changed files with 2 additions and 6 deletions

View File

@ -560,12 +560,6 @@ void push_order(order ** ordp, order * ord)
*ordp = 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) keyword_t init_order(const struct order *ord)
{ {
char *cmd = 0; char *cmd = 0;

View File

@ -1,3 +1,4 @@
#include <platform.h>
#include <config.h> #include <config.h>
#include <kernel/config.h> #include <kernel/config.h>
#include "order.h" #include "order.h"
@ -7,6 +8,7 @@
#include <CuTest.h> #include <CuTest.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
static void test_create_order(CuTest *tc) { static void test_create_order(CuTest *tc) {
char cmd[32]; char cmd[32];