Commit 6dcc1af7 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Fix signature of open_fd().

parent c62c1c01
......@@ -866,7 +866,7 @@ struct fd *alloc_fd( const struct fd_ops *fd_user_ops, struct object *user )
/* open() wrapper using a struct fd */
/* the fd must have been created with alloc_fd */
/* on error the fd object is released */
struct fd *open_fd( struct fd *fd, const char *name, int flags, int *mode )
struct fd *open_fd( struct fd *fd, const char *name, int flags, mode_t *mode )
{
struct stat st;
struct closed_fd *closed_fd;
......
......@@ -45,7 +45,7 @@ struct fd_ops
/* file descriptor functions */
extern struct fd *alloc_fd( const struct fd_ops *fd_user_ops, struct object *user );
extern struct fd *open_fd( struct fd *fd, const char *name, int flags, int *mode );
extern struct fd *open_fd( struct fd *fd, const char *name, int flags, mode_t *mode );
extern struct fd *create_anonymous_fd( const struct fd_ops *fd_user_ops,
int unix_fd, struct object *user );
extern void *get_fd_user( struct fd *fd );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment