svn commit: r285400 - head/sys/compat/cloudabi

Ed Schouten ed at FreeBSD.org
Sat Jul 11 18:53:31 UTC 2015


Author: ed
Date: Sat Jul 11 18:53:30 2015
New Revision: 285400
URL: https://svnweb.freebsd.org/changeset/base/285400

Log:
  Use FDDUP_NORMAL instead of hardcoding value 0.
  
  Proposed by:	mjg

Modified:
  head/sys/compat/cloudabi/cloudabi_fd.c

Modified: head/sys/compat/cloudabi/cloudabi_fd.c
==============================================================================
--- head/sys/compat/cloudabi/cloudabi_fd.c	Sat Jul 11 18:39:16 2015	(r285399)
+++ head/sys/compat/cloudabi/cloudabi_fd.c	Sat Jul 11 18:53:30 2015	(r285400)
@@ -76,7 +76,7 @@ int
 cloudabi_sys_fd_dup(struct thread *td, struct cloudabi_sys_fd_dup_args *uap)
 {
 
-	return (kern_dup(td, 0, 0, uap->from, 0));
+	return (kern_dup(td, FDDUP_NORMAL, 0, uap->from, 0));
 }
 
 int


More information about the svn-src-head mailing list