mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [mynewt-mcumgr] 37/42: fs_mgmt - Surround macro definition with ().
Date Tue, 13 Feb 2018 02:22:21 GMT
This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git

commit 9b45fbc5d2cb59e3de14dc88077b6e4713892103
Author: Christopher Collins <ccollins@apache.org>
AuthorDate: Mon Feb 12 13:16:56 2018 -0800

    fs_mgmt - Surround macro definition with ().
---
 cmd/fs_mgmt/src/fs_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/fs_mgmt/src/fs_mgmt.c b/cmd/fs_mgmt/src/fs_mgmt.c
index 2ce7fc2..2d43ac1 100644
--- a/cmd/fs_mgmt/src/fs_mgmt.c
+++ b/cmd/fs_mgmt/src/fs_mgmt.c
@@ -47,7 +47,7 @@ static const struct mgmt_handler fs_mgmt_handlers[] = {
 };
 
 #define FS_MGMT_HANDLER_CNT \
-    sizeof fs_mgmt_handlers / sizeof fs_mgmt_handlers[0]
+    (sizeof fs_mgmt_handlers / sizeof fs_mgmt_handlers[0])
 
 static struct mgmt_group fs_mgmt_group = {
     .mg_handlers = fs_mgmt_handlers,

-- 
To stop receiving notification emails like this one, please contact
ccollins@apache.org.

Mime
View raw message