# | Line 177 | Line 177 | int16 XSERDPort::open(uint16 config) | |
---|---|---|
177 | quitting = false; | |
178 | ||
179 | // Open port | |
180 | < | fd = open(device_name, O_RDWR); |
180 | > | fd = ::open(device_name, O_RDWR); |
181 | if (fd < 0) | |
182 | goto open_error; | |
183 | ||
# | Line 238 | Line 238 | open_error: | |
238 | output_thread_active = false; | |
239 | } | |
240 | if (fd > 0) { | |
241 | < | close(fd); |
241 | > | ::close(fd); |
242 | fd = -1; | |
243 | } | |
244 | return openErr; | |
# | Line 513 | Line 513 | int16 XSERDPort::close() | |
513 | ||
514 | // Close port | |
515 | if (fd > 0) | |
516 | < | close(fd); |
516 | > | ::close(fd); |
517 | fd = -1; | |
518 | return noErr; | |
519 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |