From 7263bf6d2c9ec0b73cc943a432e73f9049aa4797 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 14 May 2001 00:04:08 +0000 Subject: [PATCH] explicitly initialized value, subdevice, channel, aref and range in main.c --- demo/cmd.c | 3 --- demo/main.c | 10 +++++----- demo/mmap.c | 4 ---- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/demo/cmd.c b/demo/cmd.c index 32fe26b..07373d0 100644 --- a/demo/cmd.c +++ b/demo/cmd.c @@ -28,10 +28,7 @@ #define N_SCANS 10 #define N_CHANS 16 -int subdevice = 0; int chan=9; -int range = 0; -int aref = AREF_GROUND; int n_chan = 3; double freq = 1000; diff --git a/demo/main.c b/demo/main.c index d3e302e..e11a5ff 100644 --- a/demo/main.c +++ b/demo/main.c @@ -18,11 +18,11 @@ char *filename="/dev/comedi0"; int verbose_flag; -int value; -int subdevice; -int channel; -int aref; -int range; +int value=0; +int subdevice=0; +int channel=0; +int aref=0; +int range=0; int parse_options(int argc, char *argv[]) diff --git a/demo/mmap.c b/demo/mmap.c index 19f80a7..f2aef3b 100644 --- a/demo/mmap.c +++ b/demo/mmap.c @@ -30,10 +30,6 @@ #define N_SCANS 10 #define N_CHANS 16 -int subdevice = 0; -int chan=0; -int range = 0; -int aref = AREF_GROUND; double freq = 1000; #define BUFSZ 1000 -- 2.26.2