From be752f9c9139f8d70d0296c6a9f49003071c8c3c Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周一, 24 12月 2012 23:29:54 +0800
Subject: [PATCH] Reorganize library

---
 libscpi/src/debug.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/scpi/scpi_debug.c b/libscpi/src/debug.c
similarity index 92%
rename from scpi/scpi_debug.c
rename to libscpi/src/debug.c
index 49ff886..087fb1b 100644
--- a/scpi/scpi_debug.c
+++ b/libscpi/src/debug.c
@@ -35,7 +35,7 @@
  */
 
 #include <stdio.h>
-#include "scpi_debug.h"
+#include "scpi/debug.h"
 
 /**
  * Debug function: show current command and its parameters
@@ -43,9 +43,11 @@
  * @return 
  */
 bool_t SCPI_DebugCommand(scpi_t * context) {
+	size_t res;
 	printf("**DEBUG: %s (\"", context->paramlist.cmd->pattern);
-	fwrite(context->paramlist.parameters, 1, context->paramlist.length, stdout);
+	res = fwrite(context->paramlist.parameters, 1, context->paramlist.length, stdout);
+	(void)res;
 	printf("\" - %ld)\r\n", context->paramlist.length);
 	
 	return TRUE;
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1