Check-in Number:
|
2736 | |
Date: |
2002-Nov-05 17:12:39 (local)
2002-Nov-05 16:12:39 (UTC) |
User: | mlelstv |
Branch: | |
Comment: |
pass through error code from open routines
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from: |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sio/sio.c 1.6 -> 1.7
--- sio.c 2002/11/05 15:52:21 1.6
+++ sio.c 2002/11/05 16:12:39 1.7
@@ -329,7 +329,7 @@
rc = sios->module->openr(sio, sio->readers.al, sios->userdata);
if (rc != SIO_OK) {
sio_destroy_al(sio, rw);
- return SIO_ERR_INT;
+ return SIO_RC(rc);
}
ADDTAIL(&sio->readers,hd,&sios->reader);
freereader = 1;
@@ -342,7 +342,7 @@
sios->module->closer(sio, sio->readers.al, sios->userdata);
}
sio_destroy_al(sio, rw);
- return SIO_ERR_INT;
+ return SIO_RC(rc);
}
ADDTAIL(&sio->writers,hd,&sios->writer);
}
|
|