Eliminate an unused OpenDevice
This commit is contained in:
parent
d9faf6bba4
commit
b9a20e529c
5
main.c
5
main.c
|
@ -169,11 +169,6 @@ int setup(void) {
|
||||||
if (NULL == (TimerIO = (struct timerequest *)CreateExtIO(timerPort, sizeof(struct timerequest)))) {
|
if (NULL == (TimerIO = (struct timerequest *)CreateExtIO(timerPort, sizeof(struct timerequest)))) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// OpenDevice returns an error code on failure, 0 on success, like a Unix command
|
|
||||||
// Give OpenDevice the thing we will use to communicate with the timer device
|
|
||||||
if (0 != (OpenDevice(TIMERNAME, UNIT_MICROHZ, (struct IORequest *)TimerIO, 0L))) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (NULL == (DataTypesBase = OpenLibrary("datatypes.library", 40))) {
|
if (NULL == (DataTypesBase = OpenLibrary("datatypes.library", 40))) {
|
||||||
// this is ok, we just won't play sound
|
// this is ok, we just won't play sound
|
||||||
|
|
Loading…
Reference in New Issue