From 24006db953ebc5e672e8b4d14db1d3102670c237 Mon Sep 17 00:00:00 2001
From: Iztok Jeras <iztok.jeras@gmail.com>
Date: 摹曛, 08 10月 2015 03:02:03 +0800
Subject: [PATCH] integer parser: remove trailing spaces

---
 examples/common/scpi-def.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/common/scpi-def.c b/examples/common/scpi-def.c
index da8e847..91658e6 100644
--- a/examples/common/scpi-def.c
+++ b/examples/common/scpi-def.c
@@ -151,7 +151,7 @@
     SCPI_ChoiceToName(trigger_source, param, &name);
     fprintf(stderr, "\tP1=%s (%ld)\r\n", name, (long int)param);
     
-    SCPI_ResultInt(context, param);
+    SCPI_ResultInt32(context, param);
 
     return SCPI_RES_OK;
 }
@@ -159,7 +159,7 @@
 static scpi_result_t TEST_Numbers(scpi_t * context) {
     int32_t numbers[2];
 
-    SCPI_CommandNumbers(context, numbers, 2);
+    SCPI_CommandNumbers(context, numbers, 2, 1);
 
     fprintf(stderr, "TEST numbers %d %d\r\n", numbers[0], numbers[1]);
 
@@ -200,7 +200,7 @@
  */
 static scpi_result_t My_CoreTstQ(scpi_t * context) {
 
-    SCPI_ResultInt(context, 0);
+    SCPI_ResultInt32(context, 0);
 
     return SCPI_RES_OK;
 }

--
Gitblit v1.9.1