Module: xenomai-head
Branch: master
Commit: 8f26347359be0f2ff774a4dab189e626bee11881
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=8f26347359be0f2ff774a4dab189e626bee11881

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Fri Nov 13 02:03:14 2009 +0100

analogy: fix a minor bug (filename management) in insn_read

---

 src/utils/analogy/insn_read.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/utils/analogy/insn_read.c b/src/utils/analogy/insn_read.c
index ce78dc6..bd203a0 100644
--- a/src/utils/analogy/insn_read.c
+++ b/src/utils/analogy/insn_read.c
@@ -1,6 +1,6 @@
 /**
  * @file
- * Analogy for Linux, instruction test program
+ * Analogy for Linux, instruction read test program
  *
  * @note Copyright (C) 1997-2000 David A. Schleef <d...@schleef.org>
  * @note Copyright (C) 2008 Alexis Berlemont <alexis.berlem...@free.fr>
@@ -36,7 +36,7 @@
 
 static unsigned char buf[BUF_SIZE];
 static double dbuf[BUF_SIZE];
-static char *filename;
+static char *filename = FILENAME;
 static int verbose;
 static int real_time;
 static int idx_subd;
@@ -141,10 +141,11 @@ int main(int argc, char *argv[])
        }
 
        /* Open the device */
-       ret = a4l_open(&dsc, FILENAME);
+       ret = a4l_open(&dsc, filename);
        if (ret < 0) {
-               fprintf(stderr, "insn_read: a4l_open %s failed (ret=%d)\n",
-                       FILENAME, ret);
+               fprintf(stderr, 
+                       "insn_read: a4l_open %s failed (ret=%d)\n",
+                       filename, ret);
                return ret;
        }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to