projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove parentheses around return arguments
[collectd.git]
/
src
/
perl.c
diff --git
a/src/perl.c
b/src/perl.c
index
5910913
..
9f61928
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-38,9
+38,7
@@
#undef DONT_POISON_SPRINTF_YET
#undef DONT_POISON_SPRINTF_YET
-#if HAVE_STDBOOL_H
#include <stdbool.h>
#include <stdbool.h>
-#endif
#include <EXTERN.h>
#include <perl.h>
#include <EXTERN.h>
#include <perl.h>
@@
-879,8
+877,8
@@
static char *get_module_name(char *buf, size_t buf_len, const char *module) {
else
status = ssnprintf(buf, buf_len, "%s::%s", base_name, module);
if ((status < 0) || ((unsigned int)status >= buf_len))
else
status = ssnprintf(buf, buf_len, "%s::%s", base_name, module);
if ((status < 0) || ((unsigned int)status >= buf_len))
- return
(NULL)
;
- return
(buf)
;
+ return
NULL
;
+ return
buf
;
} /* char *get_module_name */
/*
} /* char *get_module_name */
/*
@@
-2491,7
+2489,7
@@
static int perl_config_loadplugin(pTHX_ oconfig_item_t *ci) {
if (NULL == get_module_name(module_name, sizeof(module_name), value)) {
log_err("Invalid module name %s", value);
if (NULL == get_module_name(module_name, sizeof(module_name), value)) {
log_err("Invalid module name %s", value);
- return
(1)
;
+ return
1
;
}
if (0 != init_pi(perl_argc, perl_argv))
}
if (0 != init_pi(perl_argc, perl_argv))
@@
-2711,5
+2709,3
@@
void module_register(void) {
plugin_register_complex_config("perl", perl_config);
return;
} /* void module_register (void) */
plugin_register_complex_config("perl", perl_config);
return;
} /* void module_register (void) */
-
-/* vim: set sw=4 ts=4 tw=78 noexpandtab : */