From a41c0e7dd2c2cae8700033f4b68dccc0be5972ae Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 24 Jun 2018 23:25:45 -1100 Subject: [PATCH] Fix --- iguana/exchanges/LP_mpnet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_mpnet.c b/iguana/exchanges/LP_mpnet.c index 53673ebea..3961ae0dd 100644 --- a/iguana/exchanges/LP_mpnet.c +++ b/iguana/exchanges/LP_mpnet.c @@ -20,6 +20,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,uint8_t *data,int32_t datalen); int32_t LP_quoteparse(struct LP_quoteinfo *qp,cJSON *argjson); +int32_t LP_mpnet_addorder(struct LP_quoteinfo *qp); int32_t LP_mpnet_addorder(struct LP_quoteinfo *qp) { @@ -34,7 +35,7 @@ int32_t LP_mpnet_addorder(struct LP_quoteinfo *qp) void LP_mpnet_init() { - char fname[1024],line[8192]; FILE *fp; struct LP_quoteinfo Q; + char fname[1024],line[8192]; FILE *fp; struct LP_quoteinfo Q; cJSON *argjson; sprintf(fname,"%s/GTC/orders",GLOBAL_DBDIR), OS_compatible_path(fname); if ( (fp= fopen(fname,"rb+")) != 0 ) {