server: Rename the get_file_info function to get_fd_type and get rid of the flags.
diff --git a/server/file.c b/server/file.c
index e6f1c71..8e10847 100644
--- a/server/file.c
+++ b/server/file.c
@@ -69,7 +69,7 @@
static int file_get_poll_events( struct fd *fd );
static void file_flush( struct fd *fd, struct event **event );
-static enum server_fd_type file_get_info( struct fd *fd, int *flags );
+static enum server_fd_type file_get_fd_type( struct fd *fd );
static const struct object_ops file_ops =
{
@@ -93,7 +93,7 @@
file_get_poll_events, /* get_poll_events */
default_poll_event, /* poll_event */
file_flush, /* flush */
- file_get_info, /* get_file_info */
+ file_get_fd_type, /* get_fd_type */
default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */
default_fd_cancel_async /* cancel_async */
@@ -232,9 +232,8 @@
if (unix_fd != -1 && fsync( unix_fd ) == -1) file_set_error();
}
-static enum server_fd_type file_get_info( struct fd *fd, int *flags )
+static enum server_fd_type file_get_fd_type( struct fd *fd )
{
- *flags = 0;
return FD_TYPE_FILE;
}