diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2016-01-25 06:36:48 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2016-01-25 06:36:48 +0000 |
commit | 328593763e1dfebc3067e4da0622dc04f0d3deb9 (patch) | |
tree | 0797cf67b3c587728d0cf51b85ffc085d06b360d /sys/dev/ipmi.c | |
parent | 10b5b7e39981ba2b1d085de60fb617320e33e4f6 (diff) |
Replace magic numbers.
Diffstat (limited to 'sys/dev/ipmi.c')
-rw-r--r-- | sys/dev/ipmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index 50833d1e872..5812388ed51 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.90 2016/01/12 10:44:32 uebayasi Exp $ */ +/* $OpenBSD: ipmi.c,v 1.91 2016/01/25 06:36:47 uebayasi Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -1125,7 +1125,7 @@ int get_sdr_partial(struct ipmi_softc *sc, u_int16_t recordId, u_int16_t reserveId, u_int8_t offset, u_int8_t length, void *buffer, u_int16_t *nxtRecordId) { - u_int8_t cmd[8 + 255]; /* 8 + max of length */ + u_int8_t cmd[IPMI_GET_WDOG_MAX + 255]; /* 8 + max of length */ int len; ((u_int16_t *) cmd)[0] = reserveId; @@ -1139,7 +1139,7 @@ get_sdr_partial(struct ipmi_softc *sc, u_int16_t recordId, u_int16_t reserveId, c.c_rslun = BMC_LUN; c.c_netfn = STORAGE_NETFN; c.c_cmd = STORAGE_GET_SDR; - c.c_txlen = 6; + c.c_txlen = IPMI_SET_WDOG_MAX; c.c_rxlen = 0; ipmi_cmd(&c); len = c.c_rxlen; |