#include <dlz_minimal.h>
+#define BUF_LEN 64 /* Should be big enough, right? hah */
+
/* Enable debug logging? */
#if 0
#define carp(...) cd->log(ISC_LOG_INFO, __VA_ARGS__);
boot_DLZ_Perl(pTHX_ CV *cv);
EXTERN_C void
xs_init(pTHX) {
- char *file = __FILE__;
+ const char *file = __FILE__;
dXSUB_SYS;
/* DynaLoader is a special case */
int
dlz_version(unsigned int *flags) {
+ UNUSED(flags);
return (DLZ_DLOPEN_VERSION);
}
SPAGAIN;
if (SvTRUE(ERRSV)) {
- POPs;
+ (void)POPs;
cd->log(ISC_LOG_ERROR,
"DLZ Perl: allnodes for zone %s died in eval: %s", zone,
SvPV_nolen(ERRSV));
* it away so we don't leave junk on the stack for the next
* caller.
*/
- POPs;
+ (void)POPs;
cd->log(ISC_LOG_ERROR,
"DLZ Perl: allowzonexfr died in eval: %s",
SvPV_nolen(ERRSV));
* it away so we don't leave junk on the stack for the next
* caller.
*/
- POPs;
+ (void)POPs;
cd->log(ISC_LOG_ERROR, "DLZ Perl: findzone died in eval: %s",
SvPV_nolen(ERRSV));
retval = ISC_R_FAILURE;
SPAGAIN;
if (SvTRUE(ERRSV)) {
- POPs;
+ (void)POPs;
cd->log(ISC_LOG_ERROR, "DLZ Perl: lookup died in eval: %s",
SvPV_nolen(ERRSV));
retval = ISC_R_FAILURE;
return (retval);
}
-const char *
+static const char *
#ifdef MULTIPLICITY
missing_perl_method(const char *perl_class_name, PerlInterpreter *my_perl)
#else /* ifdef MULTIPLICITY */
missing_perl_method(const char *perl_class_name)
#endif /* ifdef MULTIPLICITY */
{
- const int BUF_LEN = 64; /* Should be big enough, right? hah */
char full_name[BUF_LEN];
const char *methods[] = { "new", "findzone", "lookup", NULL };
int i = 0;
dlz_create(const char *dlzname, unsigned int argc, char *argv[], void **dbdata,
...) {
config_data_t *cd;
- char *init_args[] = { NULL, NULL };
- char *perlrun[] = { "", NULL, "dlz perl", NULL };
+ char *perlrun[] = { (char *)"", NULL, (char *)"dlz perl", NULL };
char *perl_class_name;
int r;
va_list ap;
}
#ifdef MULTIPLICITY
- if (missing_method_name = missing_perl_method(perl_class_name, my_perl))
+ if ((missing_method_name = missing_perl_method(perl_class_name,
+ my_perl)))
#else /* ifdef MULTIPLICITY */
- if (missing_method_name = missing_perl_method(perl_class_name))
+ if ((missing_method_name = missing_perl_method(perl_class_name)))
#endif /* ifdef MULTIPLICITY */
{
cd->log(ISC_LOG_ERROR,
LEAVE;
if (SvTRUE(ERRSV)) {
- POPs;
+ (void)POPs;
cd->log(ISC_LOG_ERROR, "DLZ Perl '%s': new died in eval: %s",
dlzname, SvPV_nolen(ERRSV));
goto CLEAN_UP_PERL_AND_FAIL;