summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-05-11 23:22:13 +0000
committerderaadt <deraadt@openbsd.org>2006-05-11 23:22:13 +0000
commite47f1181384f8f6e0d04c3921863d60cb12559ea (patch)
tree26d17656c38398c645e922c89a1ea33534c7d962
parentcleaner (diff)
downloadwireguard-openbsd-e47f1181384f8f6e0d04c3921863d60cb12559ea.tar.xz
wireguard-openbsd-e47f1181384f8f6e0d04c3921863d60cb12559ea.zip
clean
-rw-r--r--sys/arch/amd64/amd64/bios.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/amd64/amd64/bios.c b/sys/arch/amd64/amd64/bios.c
index c7b12e00f23..6557d0d670d 100644
--- a/sys/arch/amd64/amd64/bios.c
+++ b/sys/arch/amd64/amd64/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.6 2006/05/10 12:36:39 krw Exp $ */
+/* $OpenBSD: bios.c,v 1.7 2006/05/11 23:22:13 deraadt Exp $ */
/*
* Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca>
*
@@ -53,7 +53,8 @@ struct smbios_entry smbios_entry;
* used by hw_sysctl
*/
extern char *hw_vendor, *hw_prod, *hw_uuid, *hw_serial, *hw_ver;
-const char * smbios_uninfo[] = {
+
+const char *smbios_uninfo[] = {
"System",
"Not Specified"
};
@@ -153,7 +154,7 @@ smbios_find_table(u_int8_t type, struct smbtable *st)
if ((u_int8_t *)st->hdr >= va && (u_int8_t *)st->hdr < end) {
hdr = st->hdr;
if (hdr->type == type) {
- va = (u_int8_t *) hdr + hdr->size;
+ va = (u_int8_t *)hdr + hdr->size;
for (; va + 1 < end; va++)
if (*va == NULL && *(va + 1) == NULL)
break;
@@ -164,7 +165,7 @@ smbios_find_table(u_int8_t type, struct smbtable *st)
}
for (; va + sizeof(struct smbtblhdr) < end && tcount <=
smbios_entry.count; tcount++) {
- hdr = (struct smbtblhdr *) va;
+ hdr = (struct smbtblhdr *)va;
if (hdr->type == type) {
ret = 1;
st->hdr = hdr;
@@ -196,7 +197,7 @@ smbios_get_string(struct smbtable *st, u_int8_t indx)
while (*va++)
;
if (i == indx)
- ret = (char *) va;
+ ret = (char *)va;
return ret;
}