]> git.ipfire.org Git - thirdparty/mtr.git/commit
cleanup: merge two trim functions to one
authorSami Kerola <kerolasa@iki.fi>
Sat, 3 Sep 2016 07:02:09 +0000 (08:02 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 4 Sep 2016 15:39:36 +0000 (16:39 +0100)
commit0f126b5fb6903af3a79bea898a7cd22d39598b57
tree89579782b0dab9bbff90396e73b5bef2f8642aec
parent5edb9708a93b812e1ce763f9a6d64495567cb8b6
cleanup: merge two trim functions to one

As a minor improvement make the trimmed string to stay at same start
address, so that trims can be safely done to pointers that are allocated and
need to be free'd later on.  There is no such case in this code, but it is
good idea to write functions the way they will not cause memory issues
if/when such use case happens.
asn.c
mtr.c
mtr.h
report.c
utils.c
utils.h