don't short-circuit the assignment of values in case of version mismatch
as show_mirror() happily tries to use them nevertheless
move redundant warning (from show_mirror()s PoV) to set_mirror()
add missing free(data)
set_mirror()
skip obsolete second assignment of data
avoid potentially "uninitialized" access to above/below4g by protecting
it with opts.set_mirror_hi/_lo respectively, thus simplifying the code
down the line
Note: this will prevent unnecessary write-operations!
get_mirror()
show_mirror()
happily tries to use them neverthelessshow_mirror()
s PoV) toset_mirror()
free(data)
set_mirror()
data
above/below4g
by protecting it withopts.set_mirror_hi/_lo
respectively, thus simplifying the code down the line Note: this will prevent unnecessary write-operations!