[syslinux:master] com32/lib: fix external prototype for __vesacon_open()

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Jan 10 13:24:05 PST 2010


Commit-ID:  e15e3124743844b8e905b122b8c8c9e864bb2f66
Gitweb:     http://syslinux.zytor.com/commit/e15e3124743844b8e905b122b8c8c9e864bb2f66
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 10 Jan 2010 13:05:26 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 10 Jan 2010 13:05:26 -0800

com32/lib: fix external prototype for __vesacon_open()

The external prototype for __vesacon_open() was incorrect; this is a
good example of why external prototypes are bad, incidentally.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/lib/sys/vesaserial_write.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/lib/sys/vesaserial_write.c b/com32/lib/sys/vesaserial_write.c
index 47527c3..775ca19 100644
--- a/com32/lib/sys/vesaserial_write.c
+++ b/com32/lib/sys/vesaserial_write.c
@@ -38,7 +38,7 @@
 #include <console.h>
 #include "file.h"
 
-extern int __vesacon_open(void);
+extern int __vesacon_open(struct file_info *);
 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);



More information about the Syslinux-commits mailing list