From: Adam Dickmeiss Date: Wed, 14 May 2008 09:26:57 +0000 (+0200) Subject: Avoid mixed-stmt declare X-Git-Tag: v1.0.9~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c4bea22d2a7a8c5c78af710ce1629274df2a941a;p=pazpar2-moved-to-github.git Avoid mixed-stmt declare --- diff --git a/src/test_record.c b/src/test_record.c index 768a8c6..b035c4a 100644 --- a/src/test_record.c +++ b/src/test_record.c @@ -43,15 +43,15 @@ void test_record(int argc, char **argv) struct client *client = 0; char * bla = "blabla"; union data_types data_text; + union data_types data_num; + struct record_metadata * tmp_md = 0; + data_text.text.disp = bla; data_text.text.sort = bla; - - union data_types data_num; data_num.number.min = 2; data_num.number.max = 5; - struct record_metadata * tmp_md = 0; service = conf_service_create(nmem, 4, 3); YAZ_CHECK(service);