Commit b5aeb3c2 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add missing static declarations.

parent 820e3c2c
...@@ -111,8 +111,8 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs) ...@@ -111,8 +111,8 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs)
} }
/***************************************************************/ /***************************************************************/
static bFiledataPF *
bFiledataPF * initBFiledataPF ( int key, int nc ) initBFiledataPF(int key, int nc)
{ {
bFiledataPF *bfd; bFiledataPF *bfd;
int i; int i;
...@@ -131,24 +131,21 @@ bFiledataPF * initBFiledataPF ( int key, int nc ) ...@@ -131,24 +131,21 @@ bFiledataPF * initBFiledataPF ( int key, int nc )
/***************************************************************/ /***************************************************************/
int destroyAFiledataPF ( void *v ) static int
destroyAFiledataPF(void *v)
{ {
int iret = 0; int iret = 0;
aFiledataPF *afd = ( aFiledataPF * ) v; aFiledataPF *afd = ( aFiledataPF * ) v;
/* close file */ /* close file */
xdebug("name=%s, close file", afd->name);
xdebug ( "name=%s, close file", afd->name ); if ((iret = fclose(afd->fp)) == EOF)
if (( iret = fclose ( afd->fp )) == EOF )
xabort("Failed to close %s", afd->name); xabort("Failed to close %s", afd->name);
/* file closed, cleanup */ /* file closed, cleanup */
xdebug("name=%s, file closed, cleanup ...", afd->name);
xdebug ( "name=%s, file closed, cleanup ...", afd->name ); dbuffer_cleanup(&(afd->db1));
dbuffer_cleanup(&(afd->db2));
dbuffer_cleanup ( &( afd->db1 ));
dbuffer_cleanup ( &( afd->db2 ));
free(afd); free(afd);
...@@ -334,7 +331,8 @@ void fpgPOSIXFPGUARDSENDRECV ( void ) ...@@ -334,7 +331,8 @@ void fpgPOSIXFPGUARDSENDRECV ( void )
//******************************************************* //*******************************************************
void writePF ( aFiledataPF *afd, int id ) static void
writePF(aFiledataPF *afd, int id)
{ {
size_t amount, written; size_t amount, written;
long offset; long offset;
......
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