From 1e58fe2212d66ff23c403a6e13232b63c95a6ee7 Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Fri, 30 Jan 2009 18:34:55 +0000
Subject: [PATCH] Add '(...)' around '&&' to prevent compiler warning.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2723 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/dev_interface.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sm5/dev_interface.cpp b/sm5/dev_interface.cpp
index d16e8ab04..f19aff7ef 100644
--- a/sm5/dev_interface.cpp
+++ b/sm5/dev_interface.cpp
@@ -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, "+");
-- 
GitLab