summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-30 10:54:54 +0300
committerYaniv Kaul <ykaul@redhat.com>2018-09-06 06:49:44 +0000
commitbc6b6f6a168804f22bbb44081f89e938fbfcec60 (patch)
treec7d6c2ce954d7f0a21025e4239a9bb07ce49d211 /tools
parente6a826a97def94458d6e02101c5bbb2b13833374 (diff)
libglusterfs/src/dict.c: remove memcpy(), gf_asprintf -> asprintf
1. We don't need a temp. string to strotol(), we can use data->data. 2. We don't need the gf_asprintf, when a regular asprintf would do. 3. No need to CALLOC the data, can MALLOC, since we are going to populate most of the fields anyway. 4. Removed is_const member - it was not used. 5. Turned is_static to a gf_boolean_t 6. Turned another get_mem0 to get_mem (in dict_set_lk() func) 7. Remove dict_set_ptr - was exactly the same as dict_set_static_ptr (apart from the 'static' bit) and no one was using it. 8. Removed is_static from the dictionary object. Did not seem to be very useful. Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com> Change-Id: I7b1f6320867b154be4a94033819407f7e51cf38c
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions