diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-11-19 15:33:58 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-11-19 15:33:58 -0800 |
commit | 8b5bef3b13cf05f4e661370ee353a4a86c00ea11 (patch) | |
tree | 3c8755dba16f5027fa6ac3e3a6f2b19408110057 /com32 | |
parent | 96d7ea4c8a3132df0e2af64215b1386095346e84 (diff) | |
download | syslinux-8b5bef3b13cf05f4e661370ee353a4a86c00ea11.tar.gz |
dprintf: fix dprintf() and vdprintf()
Fix incorrect prototype for vdprintf() used in dprintf(), masked by
the non-use of the header file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32')
-rw-r--r-- | com32/lib/dprintf.c | 6 | ||||
-rw-r--r-- | com32/lib/vdprintf.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/com32/lib/dprintf.c b/com32/lib/dprintf.c index 96170237..ab431d8a 100644 --- a/com32/lib/dprintf.c +++ b/com32/lib/dprintf.c @@ -5,13 +5,17 @@ #include <stdio.h> #include <stdarg.h> +#undef DEBUG +#define DEBUG 1 +#include <dprintf.h> + int dprintf(const char *format, ...) { va_list ap; int rv; va_start(ap, format); - rv = vdprintf(stdout, format, ap); + rv = vdprintf(format, ap); va_end(ap); return rv; } diff --git a/com32/lib/vdprintf.c b/com32/lib/vdprintf.c index 46a4b00d..869296ef 100644 --- a/com32/lib/vdprintf.c +++ b/com32/lib/vdprintf.c @@ -9,6 +9,10 @@ #include <inttypes.h> #include <sys/io.h> +#undef DEBUG +#define DEBUG 1 +#include <dprintf.h> + #define BUFFER_SIZE 32768 struct file_info; |