summaryrefslogtreecommitdiffstats
path: root/lib/ferr.h
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-03-06 19:25:33 +0100
committerLou Berger <lberger@labn.net>2018-03-06 19:59:05 +0100
commite894f9fd92f83d611bc7869de775e869d12ec578 (patch)
tree1d01a693c41d903e6367749fafffb6c4e3198672 /lib/ferr.h
parentMakefile.am: Add 'make indent' target (diff)
downloadfrr-e894f9fd92f83d611bc7869de775e869d12ec578.tar.xz
frr-e894f9fd92f83d611bc7869de775e869d12ec578.zip
lib: change comment block to #define to avoid indent.py from breaking comment
due to DEFUN within comment Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'lib/ferr.h')
-rw-r--r--lib/ferr.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ferr.h b/lib/ferr.h
index c4f83f171..94a4de2f9 100644
--- a/lib/ferr.h
+++ b/lib/ferr.h
@@ -166,14 +166,15 @@ void vty_print_error(struct vty *vty, ferr_r err, const char *msg, ...);
#define CMD_FERR_GOTO(func, label, ...) \
CMD_FERR_DO(func, goto label, __VA_ARGS__)
-/* example:
-
+/* example: uses bogus #define to keep indent.py happy */
+#ifdef THIS_IS_AN_EXAMPLE
ferr_r foo_bar_set(struct object *obj, int bar)
{
if (bar < 1 || bar >= 100)
- return ferr_config_invalid("bar setting (%d) must be 0<x<100", bar);
+ return ferr_config_invalid("bar setting (%d) must be 0<x<100",
+ bar);
obj->bar = bar;
- if (ioctl (obj->fd, bar))
+ if (ioctl(obj->fd, bar))
return ferr_system_errno("couldn't set bar to %d", bar);
return ferr_ok();
@@ -186,6 +187,6 @@ DEFUN("bla")
return CMD_SUCCESS;
}
-*/
+#endif /* THIS_IS_AN_EXAMPLE */
#endif /* _FERR_H */