Skip to content

Commit c5765c0

Browse files
Renamed Windows fstat implementation for device handles.
1 parent 01d38f4 commit c5765c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libnvme/src/nvme/lib-windows.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include "compiler-attributes.h"
1212

1313

14-
/* fstat implementation for device HANDLE */
15-
static int __libnvme_fd_fstat(libnvme_fd_t fd, struct stat *buf)
14+
/* fstat implementation for Windows device HANDLE */
15+
static int __handle_fstat(HANDLE fd, struct stat *buf)
1616
{
1717
BY_HANDLE_FILE_INFORMATION file_info;
1818
ULARGE_INTEGER ull;
@@ -126,7 +126,7 @@ static int __libnvme_transport_handle_open_direct(struct libnvme_transport_handl
126126

127127
hdl->fd = h;
128128

129-
__libnvme_fd_fstat(hdl->fd, &hdl->stat);
129+
__handle_fstat(hdl->fd, &hdl->stat);
130130

131131
/* Windows doesn't distinguish 32/64-bit ioctl, assume 64-bit capable */
132132
hdl->ioctl_admin64 = true;

0 commit comments

Comments
 (0)