diff options
author | germeier <germeier> | 2004-04-23 18:17:56 +0000 |
---|---|---|
committer | germeier <germeier> | 2004-04-23 18:17:56 +0000 |
commit | bac753b8405c719efd4b922c81983fd75e5486fe (patch) | |
tree | 63c9daaf530eb13afdb7b180f6eea6d0b22e9013 /libmpio | |
parent | 881499a1f9bc915154c9f46adc9e8f2564e5b99a (diff) | |
download | mpiosh-bac753b8405c719efd4b922c81983fd75e5486fe.tar.gz mpiosh-bac753b8405c719efd4b922c81983fd75e5486fe.tar.bz2 mpiosh-bac753b8405c719efd4b922c81983fd75e5486fe.zip |
fixed a stupid bug while closing the device
Diffstat (limited to 'libmpio')
-rw-r--r-- | libmpio/src/io.c | 6 | ||||
-rw-r--r-- | libmpio/src/mpio.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libmpio/src/io.c b/libmpio/src/io.c index 2d0a029..6c1f1eb 100644 --- a/libmpio/src/io.c +++ b/libmpio/src/io.c @@ -1,5 +1,5 @@ /* - * $Id: io.c,v 1.10 2004/04/19 12:19:26 germeier Exp $ + * $Id: io.c,v 1.11 2004/04/23 18:17:56 germeier Exp $ * * libmpio - a library for accessing Digit@lways MPIO players * Copyright (C) 2002-2004 Markus Germeier @@ -584,19 +584,19 @@ mpio_device_open(mpio_t *m){ } } - m->use_libusb=0; return MPIO_ERR_PERMISSION_DENIED; } int mpio_device_close(mpio_t *m) { if(m->use_libusb) { + debugn(2, "closing libusb\n"); usb_close(m->usb_handle); - close(m->fd); m->fd=0; } #ifdef USE_KMODULE else { + debugn(2, "closing kernel module\n"); close(m->fd); m->fd=0; } diff --git a/libmpio/src/mpio.c b/libmpio/src/mpio.c index 6915ff1..1d66578 100644 --- a/libmpio/src/mpio.c +++ b/libmpio/src/mpio.c @@ -1,5 +1,5 @@ /* - * $Id: mpio.c,v 1.12 2004/04/19 12:19:26 germeier Exp $ + * $Id: mpio.c,v 1.13 2004/04/23 18:17:56 germeier Exp $ * * libmpio - a library for accessing Digit@lways MPIO players * Copyright (C) 2002-2004 Markus Germeier @@ -481,7 +481,7 @@ void mpio_close(mpio_t *m) { if (m) { - close(m->fd); + mpio_device_close(m); if(m->internal.fat) free(m->internal.fat); |