Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Get arguments in the right order for copyout. (Oops!)
details: https://anonhg.NetBSD.org/src/rev/d13695c50bf0
branches: trunk
changeset: 802853:d13695c50bf0
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Oct 05 10:00:03 2014 +0000
description:
Get arguments in the right order for copyout. (Oops!)
diffstat:
sys/kern/kern_uuid.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c5fa1aabbff6 -r d13695c50bf0 sys/kern/kern_uuid.c
--- a/sys/kern/kern_uuid.c Sun Oct 05 09:28:24 2014 +0000
+++ b/sys/kern/kern_uuid.c Sun Oct 05 10:00:03 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_uuid.c,v 1.19 2014/10/04 11:15:44 riastradh Exp $ */
+/* $NetBSD: kern_uuid.c,v 1.20 2014/10/05 10:00:03 riastradh Exp $ */
/*
* Copyright (c) 2002 Marcel Moolenaar
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_uuid.c,v 1.19 2014/10/04 11:15:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_uuid.c,v 1.20 2014/10/05 10:00:03 riastradh Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -82,7 +82,7 @@
count > 0;
store++, count--) {
uuid_generate(&tmp);
- error = copyout(store, &tmp, sizeof tmp);
+ error = copyout(&tmp, store, sizeof tmp);
if (error)
return error;
}
Home |
Main Index |
Thread Index |
Old Index