From fb5c11b545e82b6a0763ba5deb6c677f223a77f1 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 7 May 2001 15:58:45 +0000 Subject: [PATCH] added delarations of ret variable in comedi_map and unmap --- comedi/kcomedilib/kcomedilib_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index 1b359531..be01e241 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -950,6 +950,7 @@ int comedi_map(unsigned int minor, unsigned int subdev, void **ptr) { comedi_device *dev; comedi_subdevice *s; + int ret; if((ret=minor_to_dev(minor,&dev))<0) return ret; @@ -973,6 +974,7 @@ int comedi_unmap(unsigned int minor, unsigned int subdev) { comedi_device *dev; comedi_subdevice *s; + int ret; if((ret=minor_to_dev(minor,&dev))<0) return ret; -- 2.26.2