shared/calendarspec: constify parameter and simplify assignments to variable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Mar 2021 08:20:47 +0000 (09:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Mar 2021 19:08:16 +0000 (20:08 +0100)
commit462f15d92d35f812d7d77edd486ca63236cffe83
tree888684d87146e4d8e1f3c5a4d100d803676dc7b2
parent169615c9a8cdc54d748d4dfc8279be9b3c2bec44
shared/calendarspec: constify parameter and simplify assignments to variable

The scope of start & stop is narrowed down, and they are assigned only once.
No functional change, but I think the code is easier to read this way.
Also add a comment to make the code easier to read.
src/shared/calendarspec.c