diff options
author | phk <phk@FreeBSD.org> | 2002-10-08 15:48:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-08 15:48:43 +0000 |
commit | a2f1fdc5bfb61a0369083a4baf6e282da519d9a5 (patch) | |
tree | 5cf759395cab7eb3eb66e79f1c413b19a98c141e /sys/boot/i386/gptboot | |
parent | 8eaa35ca87ddc1428d31986fa79575daf17553d9 (diff) | |
download | FreeBSD-src-a2f1fdc5bfb61a0369083a4baf6e282da519d9a5.zip FreeBSD-src-a2f1fdc5bfb61a0369083a4baf6e282da519d9a5.tar.gz |
Save a couple of bytes by not returning ints nobody care about.
Sponsored by: DARPA & NAI labs
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r-- | sys/boot/i386/gptboot/gptboot.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c index 795ba9f..d7b2a0b 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 |