forked from github/server
remove unused static function, fix missing include for gcc.
This commit is contained in:
parent
ad903e83e3
commit
9db6826662
|
@ -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;
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue