This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Call open_null to open fake handle


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=aadd5f029569350d590cff33c7a3c643601fd5db

commit aadd5f029569350d590cff33c7a3c643601fd5db
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Apr 9 21:49:36 2015 +0200

    Call open_null to open fake handle
    
    	* fhandler_dsp.cc (fhandler_dev_dsp::open): Call open_null.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog       | 4 ++++
 winsup/cygwin/fhandler_dsp.cc | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 2c170b4..6b8bd56 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-09  Corinna Vinschen  <corinna@vinschen.de>
+
+	* fhandler_dsp.cc (fhandler_dev_dsp::open): Call open_null.
+
 2015-04-08  Corinna Vinschen  <corinna@vinschen.de>
 
 	* pwdgrp.h (sidfromuid): New inline function.
diff --git a/winsup/cygwin/fhandler_dsp.cc b/winsup/cygwin/fhandler_dsp.cc
index b5eaba7..9fa2c6e 100644
--- a/winsup/cygwin/fhandler_dsp.cc
+++ b/winsup/cygwin/fhandler_dsp.cc
@@ -1037,7 +1037,7 @@ fhandler_dev_dsp::fixup_after_exec ()
 
 
 int
-fhandler_dev_dsp::open (int flags, mode_t mode)
+fhandler_dev_dsp::open (int flags, mode_t)
 {
   int ret = 0, err = 0;
   UINT num_in = 0, num_out = 0;
@@ -1068,7 +1068,7 @@ fhandler_dev_dsp::open (int flags, mode_t mode)
   if (err)
     set_errno (err);
   else
-    ret = fhandler_base::open (flags, mode);
+    ret = open_null (flags);
 
   debug_printf ("ACCMODE=%y audio_in=%d audio_out=%d, err=%d, ret=%d",
 		flags & O_ACCMODE, num_in, num_out, err, ret);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]