Commit 5ca510af authored by Martin Szulecki's avatar Martin Szulecki

Remove whitespace errors from all files

parent 137716df
...@@ -151,7 +151,7 @@ int node_list_remove(node_list_t* list, node_t* node) { ...@@ -151,7 +151,7 @@ int node_list_remove(node_list_t* list, node_t* node) {
return node_index; return node_index;
} }
node_index++; node_index++;
} }
return -1; return -1;
} }
...@@ -339,7 +339,7 @@ static char *plist_utf16be_to_utf8(uint16_t *unistr, long len, long *items_read, ...@@ -339,7 +339,7 @@ static char *plist_utf16be_to_utf8(uint16_t *unistr, long len, long *items_read,
read_lead_surrogate = 1; read_lead_surrogate = 1;
w = 0x010000 + ((wc & 0x3FF) << 10); w = 0x010000 + ((wc & 0x3FF) << 10);
} else { } 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. // Handling error by skipping.
read_lead_surrogate = 0; read_lead_surrogate = 0;
} }
......
...@@ -790,7 +790,7 @@ PLIST_API void plist_dict_merge(plist_t *target, plist_t source) ...@@ -790,7 +790,7 @@ PLIST_API void plist_dict_merge(plist_t *target, plist_t source)
free(key); free(key);
key = NULL; key = NULL;
} while (1); } while (1);
free(it); free(it);
} }
PLIST_API plist_t plist_access_pathv(plist_t plist, uint32_t length, va_list v) PLIST_API plist_t plist_access_pathv(plist_t plist, uint32_t length, va_list v)
......
/* /*
Copyright (c) 2007-2010 Michael G Schwern Copyright (c) 2007-2010 Michael G Schwern
...@@ -30,7 +30,7 @@ THE SOFTWARE. ...@@ -30,7 +30,7 @@ THE SOFTWARE.
Programmers who have available to them 64-bit time values as a 'long Programmers who have available to them 64-bit time values as a 'long
long' type can use localtime64_r() and gmtime64_r() which correctly 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. values will depend on the operating system.
localtime64_r() is a 64-bit equivalent of localtime_r(). localtime64_r() is a 64-bit equivalent of localtime_r().
...@@ -293,7 +293,7 @@ static int check_tm(struct TM *tm) ...@@ -293,7 +293,7 @@ static int check_tm(struct TM *tm)
assert(tm->tm_wday >= 0); assert(tm->tm_wday >= 0);
assert(tm->tm_wday <= 6); assert(tm->tm_wday <= 6);
assert(tm->tm_yday >= 0); assert(tm->tm_yday >= 0);
assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]); assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]);
...@@ -368,7 +368,7 @@ static int safe_year(const Year year) ...@@ -368,7 +368,7 @@ static int safe_year(const Year year)
year_cycle += 17; year_cycle += 17;
year_cycle %= SOLAR_CYCLE_LENGTH; year_cycle %= SOLAR_CYCLE_LENGTH;
if( year_cycle < 0 ) if( year_cycle < 0 )
year_cycle = SOLAR_CYCLE_LENGTH + year_cycle; year_cycle = SOLAR_CYCLE_LENGTH + year_cycle;
assert( year_cycle >= 0 ); assert( year_cycle >= 0 );
...@@ -674,7 +674,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p) ...@@ -674,7 +674,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p)
p->tm_hour = v_tm_hour; p->tm_hour = v_tm_hour;
p->tm_mon = v_tm_mon; p->tm_mon = v_tm_mon;
p->tm_wday = v_tm_wday; p->tm_wday = v_tm_wday;
assert(check_tm(p)); assert(check_tm(p));
return p; return p;
...@@ -756,7 +756,7 @@ struct TM *localtime64_r (const Time64_T *timev, struct TM *local_tm) ...@@ -756,7 +756,7 @@ struct TM *localtime64_r (const Time64_T *timev, struct TM *local_tm)
local_tm->tm_year++; 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 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 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 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) ...@@ -766,7 +766,7 @@ struct TM *localtime64_r (const Time64_T *timev, struct TM *local_tm)
local_tm->tm_yday--; local_tm->tm_yday--;
assert(check_tm(local_tm)); assert(check_tm(local_tm));
return local_tm; return local_tm;
} }
......
...@@ -39,7 +39,7 @@ struct TM64 { ...@@ -39,7 +39,7 @@ struct TM64 {
#define TM TM64 #define TM TM64
#else #else
#define TM tm #define TM tm
#endif #endif
/* Declare public functions */ /* Declare public functions */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment