Module Name:    src
Committed By:   riastradh
Date:           Tue Apr  1 17:49:17 UTC 2014

Modified Files:
        src/sys/dev/ic: apple_smc.c

Log Message:
Fix copypasta error in apple_smc_write_key_4: uint32_t, not uint16_t.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/apple_smc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/apple_smc.c
diff -u src/sys/dev/ic/apple_smc.c:1.4 src/sys/dev/ic/apple_smc.c:1.5
--- src/sys/dev/ic/apple_smc.c:1.4	Tue Apr  1 17:49:05 2014
+++ src/sys/dev/ic/apple_smc.c	Tue Apr  1 17:49:17 2014
@@ -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 @@ apple_smc_write_key_4(struct apple_smc_t
     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);

Reply via email to