Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common Fix c&p error for the length argumen...



details:   https://anonhg.NetBSD.org/src/rev/2cf7696b295d
branches:  trunk
changeset: 329104:2cf7696b295d
user:      njoly <njoly%NetBSD.org@localhost>
date:      Tue May 06 18:17:22 2014 +0000

description:
Fix c&p error for the length argument in fadvise64_64.

diffstat:

 sys/compat/linux/common/linux_fadvise64_64.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 016cef9fd3c9 -r 2cf7696b295d sys/compat/linux/common/linux_fadvise64_64.c
--- a/sys/compat/linux/common/linux_fadvise64_64.c      Tue May 06 17:34:39 2014 +0000
+++ b/sys/compat/linux/common/linux_fadvise64_64.c      Tue May 06 18:17:22 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_fadvise64_64.c,v 1.1 2011/05/30 17:50:32 alnsn Exp $     */
+/*     $NetBSD: linux_fadvise64_64.c,v 1.2 2014/05/06 18:17:22 njoly Exp $     */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_fadvise64_64.c,v 1.1 2011/05/30 17:50:32 alnsn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_fadvise64_64.c,v 1.2 2014/05/06 18:17:22 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -73,5 +73,5 @@
        } */
 
        return do_posix_fadvise(SCARG(uap, fd), SCARG(uap, offset),
-           SCARG(uap, offset), linux_to_bsd_posix_fadv(SCARG(uap, advice)));
+           SCARG(uap, len), linux_to_bsd_posix_fadv(SCARG(uap, advice)));
 }



Home | Main Index | Thread Index | Old Index