From e894f9fd92f83d611bc7869de775e869d12ec578 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 6 Mar 2018 13:25:33 -0500 Subject: [PATCH] lib: change comment block to #define to avoid indent.py from breaking comment due to DEFUN within comment Signed-off-by: Lou Berger --- lib/ferr.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/ferr.h b/lib/ferr.h index c4f83f1710..94a4de2f90 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 0bar = 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 */ -- 2.39.5