Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #141

Closed
wants to merge 2 commits into from
Closed

Fix warnings #141

wants to merge 2 commits into from

Conversation

amarts
Copy link
Member

@amarts amarts commented Oct 19, 2018

Fixes: #140

@ghost ghost assigned amarts Oct 19, 2018
@ghost ghost added the in progress label Oct 19, 2018
@amarts
Copy link
Member Author

amarts commented Oct 19, 2018

Note that this is based on top of #137 as there were same lines edited in these patches. If this gets merged, both the pull requests automatically get closed!

@obnoxxx
Copy link
Contributor

obnoxxx commented Oct 19, 2018

I suggest to merge #137 first and then rebase this.

Fixes: gluster#136
Signed-off-by: Amar Tumballi <amarts@redhat.com>
For global structure initialization, set only the fields
which are non-zero.

Fixes: gluster#140
Signed-off-by: Amar Tumballi <amarts@redhat.com>
utils/utils.c Outdated
@@ -17,7 +17,7 @@
# include "config.h"


struct gbConf gbConf = {LRU_COUNT_DEF, GB_LOG_INFO, GB_LOGDIR, '\0', '\0', '\0', '\0', '\0'};
struct gbConf gbConf = {LRU_COUNT_DEF, GB_LOG_INFO, GB_LOGDIR, '\0', '\0', '\0', '\0', '\0', '\0', 0};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just init the default values as:

#define GLFS_HOST_DEF "localhost"
#define GLFS_PORT_DEF 24007

struct gbConf gbConf = {LRU_COUNT_DEF, GB_LOG_INFO, GB_LOGDIR, '\0', '\0', '\0', '\0', '\0', GLFS_HOST_DEF, GLFS_PORT_DEF};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants