diff options
Diffstat (limited to 'com32/lib/sys/vesaserial_write.c')
-rw-r--r-- | com32/lib/sys/vesaserial_write.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/com32/lib/sys/vesaserial_write.c b/com32/lib/sys/vesaserial_write.c index f4929177..47527c3a 100644 --- a/com32/lib/sys/vesaserial_write.c +++ b/com32/lib/sys/vesaserial_write.c @@ -43,18 +43,19 @@ extern int __vesacon_close(struct file_info *); extern ssize_t __vesacon_write(struct file_info *, const void *, size_t); extern ssize_t __xserial_write(struct file_info *, const void *, size_t); -static ssize_t __vesaserial_write(struct file_info *fp, const void *buf, size_t count) +static ssize_t __vesaserial_write(struct file_info *fp, const void *buf, + size_t count) { - __vesacon_write(fp, buf, count); - return __xserial_write(fp, buf, count); + __vesacon_write(fp, buf, count); + return __xserial_write(fp, buf, count); } const struct output_dev dev_vesaserial_w = { - .dev_magic = __DEV_MAGIC, - .flags = __DEV_TTY | __DEV_OUTPUT, - .fileflags = O_WRONLY | O_CREAT | O_TRUNC | O_APPEND, - .write = __vesaserial_write, - .close = __vesacon_close, - .open = __vesacon_open, - .fallback = &dev_ansiserial_w, + .dev_magic = __DEV_MAGIC, + .flags = __DEV_TTY | __DEV_OUTPUT, + .fileflags = O_WRONLY | O_CREAT | O_TRUNC | O_APPEND, + .write = __vesaserial_write, + .close = __vesacon_close, + .open = __vesacon_open, + .fallback = &dev_ansiserial_w, }; |