From: Frank Mori Hess Date: Mon, 14 May 2001 00:04:08 +0000 (+0000) Subject: explicitly initialized value, subdevice, channel, aref and range in main.c X-Git-Tag: r0_7_16~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7263bf6d2c9ec0b73cc943a432e73f9049aa4797;p=comedilib.git explicitly initialized value, subdevice, channel, aref and range in main.c --- 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