diff options
author | Richard Braun <rbraun@sceen.net> | 2016-05-15 12:47:18 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-05-15 12:49:16 +0200 |
commit | bbcbebe456c921fc9494fec2bd1cbe1fa6696453 (patch) | |
tree | 1f505611ae40e5f0cd06eb845d31fca727673322 /ddb | |
parent | f275b56a4ef09361dbf3c425bdc22118b55ae898 (diff) | |
download | gnumach-bbcbebe456c921fc9494fec2bd1cbe1fa6696453.tar.gz gnumach-bbcbebe456c921fc9494fec2bd1cbe1fa6696453.tar.bz2 gnumach-bbcbebe456c921fc9494fec2bd1cbe1fa6696453.zip |
Fix warning
ddb/db_output.c (db_printf): Return 0.
ddb/db_printf.h (db_printf): Change declaration to return an int.
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_output.c | 3 | ||||
-rw-r--r-- | ddb/db_output.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ddb/db_output.c b/ddb/db_output.c index a34e8070..ded9fa96 100644 --- a/ddb/db_output.c +++ b/ddb/db_output.c @@ -203,7 +203,7 @@ void db_end_line(void) } /*VARARGS1*/ -void +int db_printf(const char *fmt, ...) { va_list listp; @@ -211,6 +211,7 @@ db_printf(const char *fmt, ...) va_start(listp, fmt); _doprnt(fmt, listp, db_id_putc, db_radix, 0); va_end(listp); + return 0; } #endif /* MACH_KDB */ diff --git a/ddb/db_output.h b/ddb/db_output.h index 497ae430..79201797 100644 --- a/ddb/db_output.h +++ b/ddb/db_output.h @@ -38,7 +38,7 @@ extern void db_force_whitespace(void); extern int db_print_position(void) __attribute__ ((pure)); extern void db_end_line(void); -extern void db_printf(const char *fmt, ...); +extern int db_printf(const char *fmt, ...); /* alternate name */ #define kdbprintf db_printf extern void db_putchar(int c); |