Change return value of comedi_close to int
authorDavid Schleef <ds@schleef.org>
Wed, 27 Jun 2001 22:16:42 +0000 (22:16 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 27 Jun 2001 22:16:42 +0000 (22:16 +0000)
lib/comedi.c

index db2e0cbb98347094b592ea21c5caa53ebe23536b..ccb6d2e669b77d1617ab4fdee033950a34dde935 100644 (file)
@@ -87,7 +87,7 @@ cleanup:
 __asm__(".symver comedi_open_0,comedi_open@");
 #endif
 
-void comedi_close(comedi_t *it)
+int comedi_close(comedi_t *it)
 {
        subdevice *s;
        int i;
@@ -117,6 +117,7 @@ void comedi_close(comedi_t *it)
        }
        close(it->fd);
        free(it);
+       return 0;
 }
 
 int comedi_cancel(comedi_t *it,unsigned int subdevice)