author | Richard Cochran <richardcochran@gmail.com> | |
Sat, 8 Apr 2017 18:17:49 +0000 (20:17 +0200) | ||
committer | Richard Cochran <richardcochran@gmail.com> | |
Sat, 8 Apr 2017 19:17:01 +0000 (21:17 +0200) | ||
commit | a0cbeb736750105b630ae54b599adac9b21f0e56 | |
tree | 15bed58ae6534c0d4e493604a9656de60c0f3fcd | tree | snapshot (tar.xz tar.gz zip) |
parent | 74ab3b3728d9d261f9e86dfdf43c5cbff0abcd58 | commit | diff |
tsproc: Clarify the internal mode handling.
The time stamp processor features four modes resulting from the
combination of two independent Boolean options. Even though we have a
proper enumerated type to represent the mode, still the code coverts
the mode into two variables.
The tests on the variables are currently simple enough, but soon we
will want to add some more complexity. In the interest of clarity,
this patch converts the paired Boolean tests into a switch/case
pattern.
No functional change.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
The time stamp processor features four modes resulting from the
combination of two independent Boolean options. Even though we have a
proper enumerated type to represent the mode, still the code coverts
the mode into two variables.
The tests on the variables are currently simple enough, but soon we
will want to add some more complexity. In the interest of clarity,
this patch converts the paired Boolean tests into a switch/case
pattern.
No functional change.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
tsproc.c | diff | blob | history |