summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2017-11-02 00:17:42 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-11-12 06:41:04 +0000
commite5c33ca37f05d92312768976b1dbd359a213a4b3 (patch)
tree27bfac1e539ea5cb1aace5fb53bf6002a8cb45f8 /xlators
parentcd249f4cb783f8d79e79468c455732669e835a4f (diff)
glusterd: PW.INCLUDE_RECURSION coverity fix
This patch fixes coverity issue 421 Problem: #include file "glusterd-utils.h" includes itself, glusterd-utils.h -> glusterd-peer-utils.h -> glusterd-utils.h Fix: include of glusterd-utils.h into glusterd-peer-utils.c instead of glusterd-peer-utils.h. Change-Id: I164732dfb1f64636577765124ddc5361ff0f1cc5 BUG: 789278 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-peer-utils.c1
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-peer-utils.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
index 31f9e873563..fd88298d347 100644
--- a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
@@ -13,6 +13,7 @@
#include "glusterd-server-quorum.h"
#include "glusterd-messages.h"
#include "common-utils.h"
+#include "glusterd-utils.h"
void
glusterd_peerinfo_destroy (struct rcu_head *head)
diff --git a/xlators/mgmt/glusterd/src/glusterd-peer-utils.h b/xlators/mgmt/glusterd/src/glusterd-peer-utils.h
index e74d1ed9536..b03b136d3ca 100644
--- a/xlators/mgmt/glusterd/src/glusterd-peer-utils.h
+++ b/xlators/mgmt/glusterd/src/glusterd-peer-utils.h
@@ -8,11 +8,11 @@
cases as published by the Free Software Foundation.
*/
+
#ifndef _GLUSTERD_PEER_UTILS_H
#define _GLUSTERD_PEER_UTILS_H
#include "glusterd.h"
-#include "glusterd-utils.h"
int32_t
glusterd_peerinfo_cleanup (glusterd_peerinfo_t *peerinfo);