Skip to content

Commit

Permalink
ndmp: removed extern "C" declaration form NdmpLogHandler
Browse files Browse the repository at this point in the history
- this declaration throws away namespaces
  • Loading branch information
franku committed Aug 21, 2018
1 parent 5923fa2 commit 6f11581
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/dird/ndmp_dma_generic.cc
Expand Up @@ -483,7 +483,7 @@ bool NdmpBuildClientAndStorageJob(JobControlRecord *jcr,
/**
* Interface function which glues the logging infra of the NDMP lib with the daemon.
*/
extern "C" void NdmpLoghandler(struct ndmlog *log, char *tag, int level, char *msg)
void NdmpLoghandler(struct ndmlog *log, char *tag, int level, char *msg)
{
int internal_level;
NIS *nis;
Expand Down
2 changes: 1 addition & 1 deletion core/src/dird/ndmp_dma_priv.h
Expand Up @@ -121,7 +121,7 @@ bool NdmpBuildStorageJob(JobControlRecord *jcr, StorageResource *store, bool ini
bool NdmpBuildClientAndStorageJob(JobControlRecord *jcr, StorageResource *store, ClientResource *client,
bool init_tape, bool init_robot, int operation, struct ndm_job_param *job);

extern "C" void NdmpLoghandler(struct ndmlog *log, char *tag, int level, char *msg);
void NdmpLoghandler(struct ndmlog *log, char *tag, int level, char *msg);
void NdmpDoQuery(UaContext *ua, ndm_job_param *ndmp_job, int NdmpLoglevel);

/*
Expand Down
2 changes: 1 addition & 1 deletion core/src/stored/ndmp_tape.cc
Expand Up @@ -161,7 +161,7 @@ static inline int NativeToNdmpLoglevel(int debuglevel, NIS *nis)
/**
* Interface function which glues the logging infra of the NDMP lib with the daemon.
*/
extern "C" void NdmpLoghandler(struct ndmlog *log, char *tag, int level, char *msg)
void NdmpLoghandler(struct ndmlog *log, char *tag, int level, char *msg)
{
int internal_level;
NIS *nis;
Expand Down

0 comments on commit 6f11581

Please sign in to comment.