diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-07-20 14:27:57 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-08-14 15:35:21 +0000 |
commit | 1f3bfe7b5d437ae3ecd202e0e224a62dbc98b133 (patch) | |
tree | 4e02ac75518c8906dbe830d3339668a9f595df07 /extras/firewalld | |
parent | d339f87a6fadf7bc4d680a657ddc404247e14c47 (diff) |
glusterd: fix gcc7 warnings
[sh]$ gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Warnings were of the type below:
xlators/mgmt/glusterd/src/glusterd-store.c:3285:33:
warning: ‘/options’ directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
snprintf (path, len, "%s/options", conf->workdir);
^~~~~~~~
xlators/mgmt/glusterd/src/glusterd-store.c:1280:39:
warning: ‘/snaps/’ directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
snprintf (snap_fpath, len, "%s/snaps/%s/%s", priv->workdir,
^~~~~~~
* Also changed some places where there was issues with key size
* Made sure all the 'char buf[SOMESIZE] = {0,};' are changed to 'char buf[SOMESIZE] = "";`
- In the files I changed
* Also edited coding standard to reflect that.
updates: bz#1193929
Change-Id: I04c652624ac63199cea2077e46b3a5def37c3689
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'extras/firewalld')
0 files changed, 0 insertions, 0 deletions