aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-30 23:22:39 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-03-30 23:22:39 -0400
commit41d2810e0e7e3fa94ff1e1387ed738f8bd5a4f48 (patch)
treee03b46c95cff5fc5a453d8dc2cc9d0184623d868
parent438f63515c0fea19d2b2e1f1e5571920d12c6529 (diff)
downloadseabios-41d2810e0e7e3fa94ff1e1387ed738f8bd5a4f48.tar.gz
Minor cleanup of GET_VAR usage in output.c.
Don't cast to a u8 - instead, cast the pointer to a u8*.
-rw-r--r--src/output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output.c b/src/output.c
index 107431ff..78b4929e 100644
--- a/src/output.c
+++ b/src/output.c
@@ -48,7 +48,7 @@ static void
puts_cs(u16 action, const char *s)
{
for (;; s++) {
- char c = GET_VAR(CS, (u8)*s);
+ char c = GET_VAR(CS, *(u8*)s);
if (!c)
break;
putc(action, c);
@@ -110,7 +110,7 @@ bprintf(u16 action, const char *fmt, ...)
va_start(args, fmt);
const char *s = fmt;
for (;; s++) {
- char c = GET_VAR(CS, (u8)*s);
+ char c = GET_VAR(CS, *(u8*)s);
if (!c)
break;
if (c != '%') {
@@ -119,7 +119,7 @@ bprintf(u16 action, const char *fmt, ...)
}
const char *n = s+1;
for (;;) {
- c = GET_VAR(CS, (u8)*n);
+ c = GET_VAR(CS, *(u8*)n);
if (!isdigit(c))
break;
n++;
@@ -127,7 +127,7 @@ bprintf(u16 action, const char *fmt, ...)
if (c == 'l') {
// Ignore long format indicator
n++;
- c = GET_VAR(CS, (u8)*n);
+ c = GET_VAR(CS, *(u8*)n);
}
s32 val;
const char *sarg;