flt.lttng-utils.debug-info: use glib memory and string functions
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 27 Mar 2019 14:44:05 +0000 (10:44 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit06d1cf5d0a878c2081b39dbd0d3b7fa2dd85ab0b
tree0a17d14be4bcaf11cf7d56a32355d01c6d3abd6f
parentf88d7cff169d83d9100c3facea0c1ea2f3bb10c7
flt.lttng-utils.debug-info: use glib memory and string functions

- Change use of glibc's malloc() to glib's g_new0() to follow the rest of
  the project.

- Change use of glibc string functions to their glib equivalent.

- Remove uses of GNU extension of conditional expressions with omitted
  operands as it would only be useful if the evaluation of the condition
  had side effects which it doesn't. Let's prefer code simplicity.

[0]:  https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Conditionals.html

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/lttng-utils/bin-info.c
plugins/lttng-utils/bin-info.h
plugins/lttng-utils/debug-info.c
plugins/lttng-utils/dwarf.c
This page took 0.025033 seconds and 4 git commands to generate.