Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
5ca510af
Commit
5ca510af
authored
Jun 08, 2020
by
Martin Szulecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove whitespace errors from all files
parent
137716df
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
node_list.c
libcnary/node_list.c
+1
-1
bplist.c
src/bplist.c
+1
-1
plist.c
src/plist.c
+1
-1
time64.c
src/time64.c
+7
-7
time64.h
src/time64.h
+1
-1
No files found.
libcnary/node_list.c
View file @
5ca510af
...
...
@@ -151,7 +151,7 @@ int node_list_remove(node_list_t* list, node_t* node) {
return
node_index
;
}
node_index
++
;
}
}
return
-
1
;
}
src/bplist.c
View file @
5ca510af
...
...
@@ -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
;
}
...
...
src/plist.c
View file @
5ca510af
...
...
@@ -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
)
...
...
src/time64.c
View file @
5ca510af
/*
/*
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
;
}
...
...
src/time64.h
View file @
5ca510af
...
...
@@ -39,7 +39,7 @@ struct TM64 {
#define TM TM64
#else
#define TM tm
#endif
#endif
/* Declare public functions */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment