aboutsummaryrefslogtreecommitdiff
path: root/htl/tests/test-17.c
diff options
context:
space:
mode:
authorGirish Joshi <girish946@gmail.com>2020-05-29 10:06:53 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-05-29 10:08:08 -0300
commit5d5b3bd94ceebe13d54a6e0cc9e2a899adbbc56f (patch)
tree0022c469cd964cfd3a43a6fb437271d3a9025c4f /htl/tests/test-17.c
parent6544999083437dabdadcec18185a1b2169b9637a (diff)
downloadglibc-5d5b3bd94ceebe13d54a6e0cc9e2a899adbbc56f.tar
glibc-5d5b3bd94ceebe13d54a6e0cc9e2a899adbbc56f.tar.gz
glibc-5d5b3bd94ceebe13d54a6e0cc9e2a899adbbc56f.tar.bz2
glibc-5d5b3bd94ceebe13d54a6e0cc9e2a899adbbc56f.zip
manual: Fix backtraces code example [BZ #10441]
Validation for pointer returned by backtrace_symbols () added. Type of variables size and i is changed from size_t to int. Variable size is used to collect the result from backtrace () that is an int. i is the loop counter variable so it can be an int. Since, size_t size is changed to int size, in printf %zd is changed to %d. Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'htl/tests/test-17.c')
0 files changed, 0 insertions, 0 deletions