Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
f096d173
Commit
f096d173
authored
Mar 04, 2013
by
npzacs
Browse files
Fixed logging pointers
parent
fe06d7f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/file/file_posix.c
View file @
f096d173
...
...
@@ -38,7 +38,7 @@ static void file_close_linux(AACS_FILE_H *file)
if
(
file
)
{
fclose
((
FILE
*
)
file
->
internal
);
DEBUG
(
DBG_FILE
,
"Closed LINUX file (%p)
\n
"
,
file
);
DEBUG
(
DBG_FILE
,
"Closed LINUX file (%p)
\n
"
,
(
void
*
)
file
);
X_FREE
(
file
);
}
...
...
@@ -82,7 +82,7 @@ static AACS_FILE_H *file_open_linux(const char* filename, const char *mode)
FILE
*
fp
=
NULL
;
AACS_FILE_H
*
file
=
malloc
(
sizeof
(
AACS_FILE_H
));
DEBUG
(
DBG_FILE
,
"Opening LINUX file %s... (%p)
\n
"
,
filename
,
file
);
DEBUG
(
DBG_FILE
,
"Opening LINUX file %s... (%p)
\n
"
,
filename
,
(
void
*
)
file
);
file
->
close
=
file_close_linux
;
file
->
seek
=
file_seek_linux
;
file
->
read
=
file_read_linux
;
...
...
@@ -96,7 +96,7 @@ static AACS_FILE_H *file_open_linux(const char* filename, const char *mode)
return
file
;
}
DEBUG
(
DBG_FILE
,
"Error opening file %s ! (%p)
\n
"
,
filename
,
file
);
DEBUG
(
DBG_FILE
,
"Error opening file %s ! (%p)
\n
"
,
filename
,
(
void
*
)
file
);
X_FREE
(
file
);
...
...
Write
Preview
Supports
Markdown
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