Skip to content
Snippets Groups Projects
Commit 1e58fe22 authored by chrfranke's avatar chrfranke
Browse files

Add '(...)' around '&&' to prevent compiler warning.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2723 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 108dd619
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
#include <stdexcept>
const char * dev_interface_cpp_cvsid = "$Id: dev_interface.cpp,v 1.4 2008/09/29 19:13:49 chrfranke Exp $"
const char * dev_interface_cpp_cvsid = "$Id: dev_interface.cpp,v 1.5 2009/01/30 18:34:55 chrfranke Exp $"
DEV_INTERFACE_H_CVSID;
/////////////////////////////////////////////////////////////////////////////
......@@ -294,7 +294,7 @@ smart_device * smart_interface::get_smart_device(const char * name, const char *
else if (!strcmp(type, "scsi"))
dev = get_scsi_device(name, type);
else if ( (!strncmp(type, "sat", 3) && (!type[3] || strchr(",+", type[3]))
else if ( ((!strncmp(type, "sat", 3) && (!type[3] || strchr(",+", type[3])))
|| (!strncmp(type, "usb", 3)))) {
// Split "sat...+base..." -> ("sat...", "base...")
unsigned satlen = strcspn(type, "+");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment