Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix copypasta error in apple_smc_write_key_4: uin...



details:   https://anonhg.NetBSD.org/src/rev/6a4dfc69c011
branches:  trunk
changeset: 795114:6a4dfc69c011
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 01 17:49:17 2014 +0000

description:
Fix copypasta error in apple_smc_write_key_4: uint32_t, not uint16_t.

diffstat:

 sys/dev/ic/apple_smc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f9a6859fe791 -r 6a4dfc69c011 sys/dev/ic/apple_smc.c
--- a/sys/dev/ic/apple_smc.c    Tue Apr 01 17:49:05 2014 +0000
+++ b/sys/dev/ic/apple_smc.c    Tue Apr 01 17:49:17 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apple_smc.c,v 1.4 2014/04/01 17:49:05 riastradh Exp $  */
+/*     $NetBSD: apple_smc.c,v 1.5 2014/04/01 17:49:17 riastradh Exp $  */
 
 /*
  * Apple System Management Controller
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_smc.c,v 1.4 2014/04/01 17:49:05 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_smc.c,v 1.5 2014/04/01 17:49:17 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -607,7 +607,7 @@
     const struct apple_smc_key *key, uint32_t v)
 {
        /* Convert the quantity from host to big-endian byte order.  */
-       const uint16_t v_be = htobe32(v);
+       const uint32_t v_be = htobe32(v);
 
        /* Write the big-endian quantity to the hardware.  */
        return apple_smc_write_key(smc, key, &v_be, 4);



Home | Main Index | Thread Index | Old Index