Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
b5aeb3c2
Commit
b5aeb3c2
authored
Jul 25, 2012
by
Thomas Jahns
🤸
Browse files
Add missing static declarations.
parent
820e3c2c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/pio_posixfpguardsendrecv.c
View file @
b5aeb3c2
...
...
@@ -111,8 +111,8 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs)
}
/***************************************************************/
bFiledataPF
*
initBFiledataPF
(
int
key
,
int
nc
)
static
bFiledataPF
*
initBFiledataPF
(
int
key
,
int
nc
)
{
bFiledataPF
*
bfd
;
int
i
;
...
...
@@ -131,24 +131,21 @@ bFiledataPF * initBFiledataPF ( int key, int nc )
/***************************************************************/
int
destroyAFiledataPF
(
void
*
v
)
static
int
destroyAFiledataPF
(
void
*
v
)
{
int
iret
=
0
;
aFiledataPF
*
afd
=
(
aFiledataPF
*
)
v
;
/* close file */
xdebug
(
"name=%s, close file"
,
afd
->
name
);
if
((
iret
=
fclose
(
afd
->
fp
))
==
EOF
)
xdebug
(
"name=%s, close file"
,
afd
->
name
);
if
((
iret
=
fclose
(
afd
->
fp
))
==
EOF
)
xabort
(
"Failed to close %s"
,
afd
->
name
);
/* file closed, cleanup */
xdebug
(
"name=%s, file closed, cleanup ..."
,
afd
->
name
);
dbuffer_cleanup
(
&
(
afd
->
db1
));
dbuffer_cleanup
(
&
(
afd
->
db2
));
xdebug
(
"name=%s, file closed, cleanup ..."
,
afd
->
name
);
dbuffer_cleanup
(
&
(
afd
->
db1
));
dbuffer_cleanup
(
&
(
afd
->
db2
));
free
(
afd
);
...
...
@@ -334,7 +331,8 @@ void fpgPOSIXFPGUARDSENDRECV ( void )
//*******************************************************
void
writePF
(
aFiledataPF
*
afd
,
int
id
)
static
void
writePF
(
aFiledataPF
*
afd
,
int
id
)
{
size_t
amount
,
written
;
long
offset
;
...
...
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