summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_clipboard.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_clipboard.cc')
-rw-r--r--winsup/cygwin/fhandler_clipboard.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_clipboard.cc b/winsup/cygwin/fhandler_clipboard.cc
index 23d97d81a..3f2409402 100644
--- a/winsup/cygwin/fhandler_clipboard.cc
+++ b/winsup/cygwin/fhandler_clipboard.cc
@@ -1,6 +1,6 @@
/* fhandler_dev_clipboard: code to access /dev/clipboard
- Copyright 2000, 2001, 2002 Red Hat, Inc
+ Copyright 2000, 2001, 2002, 2003 Red Hat, Inc
Written by Charles Wilson (cwilson@ece.gatech.edu)
@@ -19,6 +19,7 @@ details. */
#include <winuser.h>
#include "cygerrno.h"
#include "security.h"
+#include "path.h"
#include "fhandler.h"
/*
@@ -32,7 +33,7 @@ static const NO_COPY char *CYGWIN_NATIVE = "CYGWIN_NATIVE_CLIPBOARD";
static UINT cygnativeformat;
fhandler_dev_clipboard::fhandler_dev_clipboard ()
- : fhandler_base (FH_CLIPBOARD), pos (0), membuffer (NULL), msize (0),
+ : fhandler_base (), pos (0), membuffer (NULL), msize (0),
eof (true)
{
/* FIXME: check for errors and loop until we can open the clipboard */
@@ -51,7 +52,7 @@ fhandler_dev_clipboard::dup (fhandler_base * child)
{
fhandler_dev_clipboard *fhc = (fhandler_dev_clipboard *) child;
- if (!fhc->open (NULL, get_flags (), 0))
+ if (!fhc->open (get_flags (), 0))
system_printf ("error opening clipboard, %E");
fhc->membuffer = membuffer;
@@ -62,7 +63,7 @@ fhandler_dev_clipboard::dup (fhandler_base * child)
}
int
-fhandler_dev_clipboard::open (path_conv *, int flags, mode_t)
+fhandler_dev_clipboard::open (int flags, mode_t)
{
set_flags (flags | O_TEXT);
eof = false;