Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-02-11 09:17:41 +0300
committerAdam Langley <agl@chromium.org>2015-02-12 02:14:46 +0300
commit6eb000dbeea7e652921097eb324c0893ad685b16 (patch)
tree8df47893b3a8c70c95a2bccdb919b3e0884e850c /crypto/time_support.c
parent9ab14e00d5f9a1c9847137f1d6f776e18f59048b (diff)
Add in missing curly braces part 3.
Everything else. Change-Id: Iac02b144465b4e7b6d69ea22ff2aaf52695ae732
Diffstat (limited to 'crypto/time_support.c')
-rw-r--r--crypto/time_support.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/crypto/time_support.c b/crypto/time_support.c
index bbfe3036..0f2787c1 100644
--- a/crypto/time_support.c
+++ b/crypto/time_support.c
@@ -129,8 +129,9 @@ static int julian_adj(const struct tm *tm, int off_day, long offset_sec,
/* Work out Julian day of new date */
time_jd += offset_day;
- if (time_jd < 0)
+ if (time_jd < 0) {
return 0;
+ }
*pday = time_jd;
*psec = offset_hms;
@@ -142,15 +143,17 @@ int OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec) {
long time_jd;
/* Convert time and offset into julian day and seconds */
- if (!julian_adj(tm, off_day, offset_sec, &time_jd, &time_sec))
+ if (!julian_adj(tm, off_day, offset_sec, &time_jd, &time_sec)) {
return 0;
+ }
/* Convert Julian day back to date */
julian_to_date(time_jd, &time_year, &time_month, &time_day);
- if (time_year < 1900 || time_year > 9999)
+ if (time_year < 1900 || time_year > 9999) {
return 0;
+ }
/* Update tm structure */