diff options
author | 2011-04-22 18:22:01 +0000 | |
---|---|---|
committer | 2011-04-22 18:22:01 +0000 | |
commit | 76390d4011d2a62b4e1139d65935b7d9f160e859 (patch) | |
tree | 8947c22e358dced46bbafce66f78c71407338ae1 | |
parent | pf_pooladdr_pl does not exist anymore. Remove its extern declaration. (diff) | |
download | wireguard-openbsd-76390d4011d2a62b4e1139d65935b7d9f160e859.tar.xz wireguard-openbsd-76390d4011d2a62b4e1139d65935b7d9f160e859.zip |
Fix uninitialzied variables and formatting strings (-Wxxx errors)
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 | ||||
-rw-r--r-- | sys/dev/acpi/acpitimer.c | 4 | ||||
-rw-r--r-- | sys/dev/acpi/dsdt.c | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 116a123e563..d77b3bf0217 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.222 2011/01/02 04:56:57 jordan Exp $ */ +/* $OpenBSD: acpi.c,v 1.223 2011/04/22 18:22:01 jordan Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -707,7 +707,7 @@ acpi_attach(struct device *parent, struct device *self, void *aux) printf("\n%s: tables", DEVNAME(sc)); SIMPLEQ_FOREACH(entry, &sc->sc_tables, q_next) { - printf(" %.4s", entry->q_table); + printf(" %.4s", (char *)entry->q_table); } printf("\n"); diff --git a/sys/dev/acpi/acpitimer.c b/sys/dev/acpi/acpitimer.c index 9cea0ea1236..a9a4b13d08e 100644 --- a/sys/dev/acpi/acpitimer.c +++ b/sys/dev/acpi/acpitimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitimer.c,v 1.8 2008/06/11 04:42:09 marco Exp $ */ +/* $OpenBSD: acpitimer.c,v 1.9 2011/04/22 18:22:01 jordan Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -93,7 +93,7 @@ acpitimerattach(struct device *parent, struct device *self, void *aux) return; } - printf(": %ld Hz, %d bits\n", ACPI_FREQUENCY, + printf(": %d Hz, %d bits\n", ACPI_FREQUENCY, psc->sc_fadt->flags & FADT_TMR_VAL_EXT ? 32 : 24); #ifdef __HAVE_TIMECOUNTER diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index 5b98046d42a..8a8f4788024 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.184 2011/04/19 23:56:10 deraadt Exp $ */ +/* $OpenBSD: dsdt.c,v 1.185 2011/04/22 18:22:01 jordan Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -818,7 +818,7 @@ aml_showvalue(struct aml_value *val, int lvl) break; case AML_OBJTYPE_FIELDUNIT: case AML_OBJTYPE_BUFFERFIELD: - printf(" field: bitpos=%.4x bitlen=%.4x ref1:%x ref2:%x [%s]\n", + printf(" field: bitpos=%.4x bitlen=%.4x ref1:%p ref2:%p [%s]\n", val->v_field.bitpos, val->v_field.bitlen, val->v_field.ref1, val->v_field.ref2, aml_mnem(val->v_field.type, NULL)); @@ -1102,7 +1102,7 @@ aml_msb(u_int64_t val) int64_t aml_evalexpr(int64_t lhs, int64_t rhs, int opcode) { - int64_t res; + int64_t res = 0; switch (opcode) { /* Math operations */ @@ -2095,7 +2095,7 @@ aml_compare(struct aml_value *a1, struct aml_value *a2, int opcode) struct aml_value * aml_concat(struct aml_value *a1, struct aml_value *a2) { - struct aml_value *c; + struct aml_value *c = NULL; /* Convert arg2 to type of arg1 */ a2 = aml_convert(a2, a1->type, -1); @@ -2610,7 +2610,7 @@ aml_disasm(struct aml_scope *scope, int lvl, struct aml_opcode *htab; uint64_t ival; struct aml_value *rv, tmp; - uint8_t *end; + uint8_t *end = NULL; struct aml_scope *ms; char *ch; char mch[64]; |