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
b3cbcc25
Commit
b3cbcc25
authored
May 18, 2014
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xplist: Silence compiler warnings about shadowing global declarations
parent
6a38f512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
xplist.c
src/xplist.c
+8
-8
No files found.
src/xplist.c
View file @
b3cbcc25
...
...
@@ -136,11 +136,11 @@ static struct node_t* new_key_node(const char* name)
return
node_create
(
NULL
,
data
);
}
static
struct
node_t
*
new_uint_node
(
uint64_t
uint
)
static
struct
node_t
*
new_uint_node
(
uint64_t
value
)
{
plist_data_t
data
=
plist_new_plist_data
();
data
->
type
=
PLIST_UINT
;
data
->
intval
=
uint
;
data
->
intval
=
value
;
data
->
length
=
sizeof
(
uint64_t
);
return
node_create
(
NULL
,
data
);
}
...
...
@@ -222,8 +222,8 @@ static void node_to_xml(node_t* node, void *xml_struct)
case
PLIST_DATE
:
tag
=
XPLIST_DATE
;
{
time_t
time
=
(
time_t
)
node_data
->
timeval
.
tv_sec
;
struct
tm
*
btime
=
gmtime
(
&
time
);
time_t
time
v
=
(
time_t
)
node_data
->
timeval
.
tv_sec
;
struct
tm
*
btime
=
gmtime
(
&
time
v
);
if
(
btime
)
{
val
=
(
char
*
)
malloc
(
24
);
memset
(
val
,
0
,
24
);
...
...
@@ -395,14 +395,14 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node)
if
(
!
xmlStrcmp
(
node
->
name
,
XPLIST_DATE
))
{
xmlChar
*
strval
=
xmlNodeGetContent
(
node
);
time_t
time
=
0
;
time_t
time
v
=
0
;
if
(
strlen
((
const
char
*
)
strval
)
>=
11
)
{
struct
tm
btime
;
struct
tm
*
tm_utc
;
parse_date
((
const
char
*
)
strval
,
&
btime
);
time
=
mktime
(
&
btime
);
tm_utc
=
gmtime
(
&
time
);
time
-=
(
mktime
(
tm_utc
)
-
time
);
time
v
=
mktime
(
&
btime
);
tm_utc
=
gmtime
(
&
time
v
);
time
v
-=
(
mktime
(
tm_utc
)
-
timev
);
}
data
->
timeval
.
tv_sec
=
(
long
)
time
;
data
->
timeval
.
tv_usec
=
0
;
...
...
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