]> git.ipfire.org Git - thirdparty/mtr.git/commit
performance: make get_iiwidth() to be const function
authorSami Kerola <kerolasa@iki.fi>
Sun, 4 Sep 2016 08:46:52 +0000 (09:46 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 4 Sep 2016 20:13:39 +0000 (21:13 +0100)
commit48d859cd7ef91a08efe84a0ca9c74c40d1e9125b
tree267ddd4f773580b140202cc2c1384c9f9ebe3b3f
parentc1806e9c75245e11820d9ece9fbf32dc4ae2955b
performance: make get_iiwidth() to be const function

Change input argument to be a variable, so that optimizer can kick in and
take short cuts when possible.

Reference; https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes
asn.c
asn.h
curses.c
report.c