Module Name:    src
Committed By:   riastradh
Date:           Sun Oct  5 10:00:03 UTC 2014

Modified Files:
        src/sys/kern: kern_uuid.c

Log Message:
Get arguments in the right order for copyout.  (Oops!)


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/kern/kern_uuid.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/kern/kern_uuid.c
diff -u src/sys/kern/kern_uuid.c:1.19 src/sys/kern/kern_uuid.c:1.20
--- src/sys/kern/kern_uuid.c:1.19	Sat Oct  4 11:15:44 2014
+++ src/sys/kern/kern_uuid.c	Sun Oct  5 10:00:03 2014
@@ -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 @@ sys_uuidgen(struct lwp *l, const struct 
 	     count > 0;
 	     store++, count--) {
 		uuid_generate(&tmp);
-		error = copyout(store, &tmp, sizeof tmp);
+		error = copyout(&tmp, store, sizeof tmp);
 		if (error)
 			return error;
 	}

Reply via email to