From 5ca510afde8bc59c9682f5f1ae11b1ed74d1acdd Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 8 Jun 2020 22:47:19 +0200 Subject: Remove whitespace errors from all files --- src/bplist.c | 2 +- src/plist.c | 2 +- src/time64.c | 14 +++++++------- src/time64.h | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/bplist.c b/src/bplist.c index 24326b7..c3fc071 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -339,7 +339,7 @@ static char *plist_utf16be_to_utf8(uint16_t *unistr, long len, long *items_read, read_lead_surrogate = 1; w = 0x010000 + ((wc & 0x3FF) << 10); } else { - // This is invalid, the next 16 bit char should be a trail surrogate. + // This is invalid, the next 16 bit char should be a trail surrogate. // Handling error by skipping. read_lead_surrogate = 0; } diff --git a/src/plist.c b/src/plist.c index 7ac146a..57f0be4 100644 --- a/src/plist.c +++ b/src/plist.c @@ -790,7 +790,7 @@ PLIST_API void plist_dict_merge(plist_t *target, plist_t source) free(key); key = NULL; } while (1); - free(it); + free(it); } PLIST_API plist_t plist_access_pathv(plist_t plist, uint32_t length, va_list v) diff --git a/src/time64.c b/src/time64.c index f1cffd4..db571d8 100644 --- a/src/time64.c +++ b/src/time64.c @@ -1,4 +1,4 @@ -/* +/* Copyright (c) 2007-2010 Michael G Schwern @@ -30,7 +30,7 @@ THE SOFTWARE. Programmers who have available to them 64-bit time values as a 'long long' type can use localtime64_r() and gmtime64_r() which correctly -converts the time even on 32-bit systems. Whether you have 64-bit time +converts the time even on 32-bit systems. Whether you have 64-bit time values will depend on the operating system. localtime64_r() is a 64-bit equivalent of localtime_r(). @@ -293,7 +293,7 @@ static int check_tm(struct TM *tm) assert(tm->tm_wday >= 0); assert(tm->tm_wday <= 6); - + assert(tm->tm_yday >= 0); assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]); @@ -368,7 +368,7 @@ static int safe_year(const Year year) year_cycle += 17; year_cycle %= SOLAR_CYCLE_LENGTH; - if( year_cycle < 0 ) + if( year_cycle < 0 ) year_cycle = SOLAR_CYCLE_LENGTH + year_cycle; assert( year_cycle >= 0 ); @@ -674,7 +674,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p) p->tm_hour = v_tm_hour; p->tm_mon = v_tm_mon; p->tm_wday = v_tm_wday; - + assert(check_tm(p)); return p; @@ -756,7 +756,7 @@ struct TM *localtime64_r (const Time64_T *timev, struct TM *local_tm) local_tm->tm_year++; } - /* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st + /* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st in a non-leap xx00. There is one point in the cycle we can't account for which the safe xx00 year is a leap year. So we need to correct for Dec 31st comming out as @@ -766,7 +766,7 @@ struct TM *localtime64_r (const Time64_T *timev, struct TM *local_tm) local_tm->tm_yday--; assert(check_tm(local_tm)); - + return local_tm; } diff --git a/src/time64.h b/src/time64.h index bf174c6..efdc716 100644 --- a/src/time64.h +++ b/src/time64.h @@ -39,7 +39,7 @@ struct TM64 { #define TM TM64 #else #define TM tm -#endif +#endif /* Declare public functions */ -- cgit v1.1-32-gdbae