From owner-svn-src-head@freebsd.org Sat Jul 11 18:53:31 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DF87999061; Sat, 11 Jul 2015 18:53:31 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5EEBB1E2F; Sat, 11 Jul 2015 18:53:31 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6BIrVQY048413; Sat, 11 Jul 2015 18:53:31 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6BIrVM8048412; Sat, 11 Jul 2015 18:53:31 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201507111853.t6BIrVM8048412@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Sat, 11 Jul 2015 18:53:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285400 - head/sys/compat/cloudabi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2015 18:53:31 -0000 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