From 26baf05377a1dc761914f60217ac6befd4687b4f Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 8 Oct 2002 15:48:43 +0000 Subject: [PATCH] Save a couple of bytes by not returning ints nobody care about. Sponsored by: DARPA & NAI labs --- sys/boot/i386/boot2/boot2.c | 12 ++++++------ sys/boot/i386/gptboot/gptboot.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c index 795ba9f1fe21..d7b2a0b7762a 100644 --- a/sys/boot/i386/boot2/boot2.c +++ b/sys/boot/i386/boot2/boot2.c @@ -120,8 +120,8 @@ static void load(const char *); static int parse(char *); static int xfsread(ino_t, void *, size_t); static int dskread(void *, unsigned, unsigned); -static int printf(const char *,...); -static int putchar(int); +static void printf(const char *,...); +static void putchar(int); static uint32_t memsize(int); static int drvread(void *, unsigned, unsigned); static int keyhit(unsigned); @@ -535,7 +535,7 @@ dskread(void *buf, unsigned lba, unsigned nblk) return drvread(buf, dsk.start + lba, nblk); } -static int +static void printf(const char *fmt,...) { static const char digits[16] = "0123456789abcdef"; @@ -573,15 +573,15 @@ printf(const char *fmt,...) putchar(c); } va_end(ap); - return 0; + return; } -static int +static void putchar(int c) { if (c == '\n') xputc('\r'); - return xputc(c); + xputc(c); } static uint32_t diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c index 795ba9f1fe21..d7b2a0b7762a 100644 --- a/sys/boot/i386/gptboot/gptboot.c +++ b/sys/boot/i386/gptboot/gptboot.c @@ -120,8 +120,8 @@ static void load(const char *); static int parse(char *); static int xfsread(ino_t, void *, size_t); static int dskread(void *, unsigned, unsigned); -static int printf(const char *,...); -static int putchar(int); +static void printf(const char *,...); +static void putchar(int); static uint32_t memsize(int); static int drvread(void *, unsigned, unsigned); static int keyhit(unsigned); @@ -535,7 +535,7 @@ dskread(void *buf, unsigned lba, unsigned nblk) return drvread(buf, dsk.start + lba, nblk); } -static int +static void printf(const char *fmt,...) { static const char digits[16] = "0123456789abcdef"; @@ -573,15 +573,15 @@ printf(const char *fmt,...) putchar(c); } va_end(ap); - return 0; + return; } -static int +static void putchar(int c) { if (c == '\n') xputc('\r'); - return xputc(c); + xputc(c); } static uint32_t