Helper time_support: const function arguments
authorAlexander Kurz <akurz@blala.de>
Sat, 13 Feb 2016 09:54:52 +0000 (10:54 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 13 Feb 2016 10:49:39 +0000 (10:49 +0000)
commit3e07e1cdfac63d5fb93260803d16e79f292dae73
treedf4bf7816bbe7f04fa9ec6f28fe5d64d992c77c4
parentfdb8c598ecd912147a08db53f2fd7bfa34b67d8a
Helper time_support: const function arguments

duration_elapsed and duration_kbps will not modify the struct duration
passed as function argument, hence it should be declared const.

Change-Id: I459c396952c78e907257e2c2f2c630abde92aaa8
Signed-off-by: Alexander Kurz <akurz@blala.de>
Reviewed-on: http://openocd.zylin.com/3232
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/helper/time_support.c
src/helper/time_support.h