summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2011-11-10 17:30:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2011-11-10 17:30:33 +0000
commit38e67addcf0bf04eb94704f78cbdceb1b423ee91 (patch)
tree63f8d7dd58a6f8bbf35deaa42866287e0c4e96a1 /sys
parenta82a03b3b016fac331ca95bed55152b073f2d3a9 (diff)
Remove unused %s from a printf(), properly cast const void* to const
int*. From Marco Trillo via tech@ long ago.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/mem.c b/sys/arch/macppc/macppc/mem.c
index 8c6a07e5c1c..6d1d68a0784 100644
--- a/sys/arch/macppc/macppc/mem.c
+++ b/sys/arch/macppc/macppc/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.16 2008/11/05 06:32:47 matthieu Exp $ */
+/* $OpenBSD: mem.c,v 1.17 2011/11/10 17:30:32 krw Exp $ */
/* $NetBSD: mem.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -124,7 +124,7 @@ mem_attach(struct device *parent, struct device *self, void *aux)
if (sc->sc_len > 0) {
sc->sc_buf = malloc(sc->sc_len, M_DEVBUF, M_NOWAIT);
if (sc->sc_buf == NULL) {
- printf("%s: can't allocate memory\n");
+ printf(": can't allocate memory\n");
return;
}
}
@@ -178,7 +178,7 @@ mem_i2c_exec(void *cookie, i2c_op_t op, i2c_addr_t addr,
if (op != I2C_OP_READ_WITH_STOP || cmdlen != 1)
return (EINVAL);
- off = addr * SPD_SIZE + *(uint8_t *)cmdbuf;
+ off = addr * SPD_SIZE + *(const uint8_t *)cmdbuf;
if (off + len > sc->sc_len)
return (EIO);