aboutsummaryrefslogtreecommitdiff
path: root/util/vgabios
diff options
context:
space:
mode:
Diffstat (limited to 'util/vgabios')
-rw-r--r--util/vgabios/Makefile4
-rw-r--r--util/vgabios/testbios.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/util/vgabios/Makefile b/util/vgabios/Makefile
index ffa30a9650..0a8dae6d59 100644
--- a/util/vgabios/Makefile
+++ b/util/vgabios/Makefile
@@ -9,7 +9,7 @@
CC = gcc
CFLAGS = -O2 -g -fomit-frame-pointer
CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
-CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
+CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
CFLAGS += -Wstrict-aliasing -Wshadow -Wextra
INCLUDES = -Iinclude -I../../src/devices/oprom/include/
@@ -27,7 +27,7 @@ all: testbios
testbios: $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-
+
helper_exec.o: helper_exec.c test.h
clean:
diff --git a/util/vgabios/testbios.c b/util/vgabios/testbios.c
index 2646a29ffd..c12e72187e 100644
--- a/util/vgabios/testbios.c
+++ b/util/vgabios/testbios.c
@@ -267,7 +267,7 @@ int main(int argc, char **argv)
}
}
}
-
+
if (absegname) {
abseg = mapitin(absegname, (off_t) 0xa0000, 0x20000);
if (!abseg)
@@ -302,7 +302,7 @@ int main(int argc, char **argv)
if (devfn) {
printf("Loading ax with BusDevFn = %x\n",devfn);
}
-
+
current->ax = devfn ? devfn : 0xff;
current->dx = 0x80;
// current->ip = 0;
@@ -359,7 +359,7 @@ unsigned short get_device(char *arg_val)
unsigned short devfn=0;
long bus=0,dev=0,fn=0,need_pack=0;
char *tok;
-
+
tok = strsep(&arg_val,":");
if (arg_val != NULL) {
bus = strtol(tok,0,16);
@@ -377,10 +377,10 @@ unsigned short get_device(char *arg_val)
}
else {
if (need_pack ==1 && (strlen(tok))) {
- dev = strtol(tok,0,16);
+ dev = strtol(tok,0,16);
}
}
-
+
if ( need_pack == 1) {
devfn = bus<<8 | (dev<<3) | fn;
}