diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/open_file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/open_file.go b/misc/open_file.go index 5bc6067..ec5d402 100644 --- a/misc/open_file.go +++ b/misc/open_file.go @@ -52,7 +52,7 @@ func Open_directory_readonly(path string) (Dir_t, error) { } // Close a directory returned by [Open_directory_readonly]. -func Close_directory(dir Dir_t) error { +func (dir *Dir_t) Close() error { return syscall.Close(dir.fd) } |