Skip to content
Snippets Groups Projects
Commit 53423af8 authored by samm2's avatar samm2
Browse files

os_freebsd.cpp: tiny change that fixes one logical error and couple of style deviations

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2953 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 579c7c3b
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ bool freebsd_smart_device::close()
{
int failed = 0;
// close device, if open
if (get_fd())
if (is_open())
failed=::close(get_fd());
set_fd(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment