Introduction
Introduction Statistics Contact Development Disclaimer Help
code-style fix - jfconvert - JSON Feed (subset) to sfeed or Atom converter
git clone git://git.codemadness.org/jfconvert
Log
Files
Refs
README
LICENSE
---
commit 3439982120504714ab7a2a0d0ca49454ef1da121
parent 2c65f7b4a6306af4e9618dc53e4b5b9c4b18e573
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 15 May 2023 00:07:37 +0200
code-style fix
Diffstat:
M jf2sfeed.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/jf2sfeed.c b/jf2sfeed.c
@@ -132,12 +132,16 @@ datetounix(long long year, int mon, int day, int hour, in…
if (!rem) {
is_leap = 1;
} else {
- if (rem >= 300)
- centuries = 3, rem -= 300;
- else if (rem >= 200)
- centuries = 2, rem -= 200;
- else if (rem >= 100)
- centuries = 1, rem -= 100;
+ if (rem >= 300) {
+ centuries = 3;
+ rem -= 300;
+ } else if (rem >= 200) {
+ centuries = 2;
+ rem -= 200;
+ } else if (rem >= 100) {
+ centuries = 1;
+ rem -= 100;
+ }
if (rem) {
leaps = rem / 4U;
rem %= 4U;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.