aboutsummaryrefslogtreecommitdiff
path: root/src/sginfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sginfo.c')
-rw-r--r--src/sginfo.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sginfo.c b/src/sginfo.c
index 4baae510..eb17888d 100644
--- a/src/sginfo.c
+++ b/src/sginfo.c
@@ -122,7 +122,7 @@
#define _GNU_SOURCE
#endif
-static const char * version_str = "2.30 [20121211]";
+static const char * version_str = "2.31 [20130107]";
#include <stdio.h>
#include <string.h>
@@ -3402,9 +3402,11 @@ show_devices(int raw)
if ( strncmp("sg",entry->d_name,2) == 0 ) {
continue;
}
- if ((strncmp("sd",entry->d_name,2) == 0) &&
- isdigit(entry->d_name[strlen(entry->d_name)-1])) {
- continue;
+ if ( strncmp("sd",entry->d_name,2) == 0 ) {
+ continue;
+ }
+ if ( isdigit(entry->d_name[strlen(entry->d_name)-1]) ) {
+ continue;
}
snprintf(dev_name, sizeof(dev_name),"/dev/%s",entry->d_name);