diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-20 01:39:01 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-20 01:39:01 +0000 |
commit | bee13a2ab030721a70364b3d6d9d2d29688c4c11 (patch) | |
tree | 0252a04fcfcf41e8772e30058904a5e119425c2b /usr.sbin/sade/devices.c | |
parent | 84d41facfbc3e68a7d4f1cf1dde81fc605ef7ef9 (diff) | |
download | FreeBSD-src-bee13a2ab030721a70364b3d6d9d2d29688c4c11.zip FreeBSD-src-bee13a2ab030721a70364b3d6d9d2d29688c4c11.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'fd' set but not used
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days
Diffstat (limited to 'usr.sbin/sade/devices.c')
-rw-r--r-- | usr.sbin/sade/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sade/devices.c b/usr.sbin/sade/devices.c index fd7ca07..672ee20 100644 --- a/usr.sbin/sade/devices.c +++ b/usr.sbin/sade/devices.c @@ -169,7 +169,7 @@ deviceReset(void) void deviceGetAll(void) { - int i, j, fd; + int i, j; char **names; msgNotify("Probing devices, please wait (this can take a while)..."); @@ -183,7 +183,7 @@ deviceGetAll(void) switch(device_names[i].type) { case DEVICE_TYPE_DISK: - fd = deviceTry(device_names[i], try, j); + deviceTry(device_names[i], try, j); break; default: |