option parsing: Mark arguments that are not modified as 'const'
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 3 Apr 2018 20:04:02 +0000 (13:04 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 20:51:39 +0000 (13:51 -0700)
commit9109883a1c20c2cbadd2d2cb8ca80d03835eaa66
tree30b9247c68efd8697b7e5235815e290c86af0865
parent69349699d5a6e244fd9e74665ff2962cbca3d329
option parsing: Mark arguments that are not modified as 'const'

This patch does not modify any functionality but makes the option
parsing code slightly easier to read by marking arguments that are
not modified explicitly as 'const'. A new function has been added,
find_option_c(), that behaves identically to find_option(). Only
the function signature differs between these two functions.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
options.c
options.h
parse.c
parse.h