Skip to content

Commit

Permalink
Fix naming typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 3179939 commit c482875
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/plugins/stored/autoxflate-sd.c
Expand Up @@ -122,7 +122,7 @@ bRC DLL_IMP_EXP loadPlugin(bsdInfo *lbinfo,
/*
* Get the current setting of the compatible flag.
*/
bfuncs->getBareosValue(NULL, bsdCompatible, (void *)&sd_enabled_compatible);
bfuncs->getBareosValue(NULL, bsdVarCompatible, (void *)&sd_enabled_compatible);

return bRC_OK;
}
Expand Down
6 changes: 3 additions & 3 deletions src/stored/sd_plugins.c
Expand Up @@ -487,9 +487,9 @@ static bRC bareosGetValue(bpContext *ctx, bsdrVariable var, void *value)
}

switch (var) { /* General variables, no need of ctx */
case bsdCompatible:
case bsdVarCompatible:
*((bool *)value) = me->compatible;
Dmsg1(dbglvl, "Bareos: return Compatible=%s\n", (me->compatible) ? "true" : "false");
Dmsg1(dbglvl, "sd-plugin: return bsdVarCompatible=%s\n", (me->compatible) ? "true" : "false");
break;
default:
break;
Expand All @@ -511,7 +511,7 @@ static bRC bareosGetValue(bpContext *ctx, bsdrVariable var, void *value)
break;
case bsdVarJobName:
*((char **)value) = jcr->Job;
Dmsg1(dbglvl, "Bareos: return Job name=%s\n", jcr->Job);
Dmsg1(dbglvl, "sd-plugin: return Job name=%s\n", jcr->Job);
break;
default:
break;
Expand Down
2 changes: 1 addition & 1 deletion src/stored/sd_plugins.h
Expand Up @@ -78,7 +78,7 @@ typedef enum {
bsdVarSDErrors = 19,
bsdVarFDJobStatus = 20,
bsdVarSDJobStatus = 21,
bsdCompatible = 22
bsdVarCompatible = 22
} bsdrVariable;

/*
Expand Down

0 comments on commit c482875

Please sign in to comment.