diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2017-07-18 15:23:12 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2017-07-18 17:10:26 +0000 |
commit | 63d46236592c9e3c2fef05fd60d1c39548e57a8d (patch) | |
tree | 4b5e7b13b8237190b8f29b03e4a6fd4f313d5213 /libglusterfs/src/common-utils.h | |
parent | f3b487a510965469963e860726059b28d67b3914 (diff) |
common-utils: Remove fop_enum_to_string, get_fop_int
Implementation of these two functions becomes easier by using gf_fop_list[]
array. So implemented that and removed usage of these functions.
BUG: 1472250
Change-Id: I8a592913f9eeb02d965708bcf28a637588ed4988
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: https://review.gluster.org/17812
Reviewed-by: Niels de Vos <ndevos@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'libglusterfs/src/common-utils.h')
-rw-r--r-- | libglusterfs/src/common-utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 41cbb01440c..f1625e446cb 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -914,6 +914,9 @@ gf_bits_index (uint64_t n); const char* gf_fop_string (glusterfs_fop_t fop); +int +gf_fop_int (char *fop); + char * get_ip_from_addrinfo (struct addrinfo *addr, char **ip); |