Skip to content

Commit

Permalink
dir: make write_findex() accessible for testing
Browse files Browse the repository at this point in the history
This patch allows to call write_findex() from another compile unit.
  • Loading branch information
arogge committed Jul 2, 2019
1 parent acc99fd commit 245db11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/dird/bsr.cc
Expand Up @@ -118,10 +118,10 @@ static void PrintBsrItem(PoolMem* pool_buf, const char* fmt, ...)
* We are called here once for each JobMedia record
* for each Volume.
*/
static inline uint32_t write_findex(RestoreBootstrapRecordFileIndex* fi,
int32_t FirstIndex,
int32_t LastIndex,
PoolMem* buffer)
uint32_t write_findex(RestoreBootstrapRecordFileIndex* fi,
int32_t FirstIndex,
int32_t LastIndex,
PoolMem* buffer)
{
int32_t findex, findex2;
uint32_t count = 0;
Expand Down
4 changes: 4 additions & 0 deletions core/src/dird/bsr.h
Expand Up @@ -96,6 +96,10 @@ bool SendBootstrapFile(JobControlRecord* jcr,
BareosSocket* sock,
bootstrap_info& info);
void CloseBootstrapFile(bootstrap_info& info);
uint32_t write_findex(RestoreBootstrapRecordFileIndex* fi,
int32_t FirstIndex,
int32_t LastIndex,
PoolMem* buffer);

} /* namespace directordaemon */
#endif // BAREOS_DIRD_BSR_H_

0 comments on commit 245db11

Please sign in to comment.