diff options
author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 |
---|---|---|
committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 |
commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /ospfd/ospf_vty.h | |
parent | *: add indent control files (diff) | |
download | frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_vty.h')
-rw-r--r-- | ospfd/ospf_vty.h | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/ospfd/ospf_vty.h b/ospfd/ospf_vty.h index ba7b24ed9..9fd0c3ed4 100644 --- a/ospfd/ospf_vty.h +++ b/ospfd/ospf_vty.h @@ -22,38 +22,36 @@ #define _QUAGGA_OSPF_VTY_H /* Macros. */ -#define VTY_GET_OSPF_AREA_ID(V,F,STR) \ -{ \ - int retv; \ - retv = str2area_id ((STR), &(V), &(F)); \ - if (retv < 0) \ - { \ - vty_out (vty, "%% Invalid OSPF area ID\n"); \ - return CMD_WARNING; \ - } \ -} +#define VTY_GET_OSPF_AREA_ID(V, F, STR) \ + { \ + int retv; \ + retv = str2area_id((STR), &(V), &(F)); \ + if (retv < 0) { \ + vty_out(vty, "%% Invalid OSPF area ID\n"); \ + return CMD_WARNING; \ + } \ + } -#define VTY_GET_OSPF_AREA_ID_NO_BB(NAME,V,F,STR) \ -{ \ - int retv; \ - retv = str2area_id ((STR), &(V), &(F)); \ - if (retv < 0) \ - { \ - vty_out (vty, "%% Invalid OSPF area ID\n"); \ - return CMD_WARNING; \ - } \ - if (OSPF_IS_AREA_ID_BACKBONE ((V))) \ - { \ - vty_out (vty, "%% You can't configure %s to backbone\n", \ - NAME); \ - } \ -} +#define VTY_GET_OSPF_AREA_ID_NO_BB(NAME, V, F, STR) \ + { \ + int retv; \ + retv = str2area_id((STR), &(V), &(F)); \ + if (retv < 0) { \ + vty_out(vty, "%% Invalid OSPF area ID\n"); \ + return CMD_WARNING; \ + } \ + if (OSPF_IS_AREA_ID_BACKBONE((V))) { \ + vty_out(vty, \ + "%% You can't configure %s to backbone\n", \ + NAME); \ + } \ + } /* Prototypes. */ -extern void ospf_vty_init (void); -extern void ospf_vty_show_init (void); -extern void ospf_vty_clear_init (void); -extern int str2area_id (const char *, struct in_addr *, int *); -extern void area_id2str (char *, int, struct in_addr *, int); +extern void ospf_vty_init(void); +extern void ospf_vty_show_init(void); +extern void ospf_vty_clear_init(void); +extern int str2area_id(const char *, struct in_addr *, int *); +extern void area_id2str(char *, int, struct in_addr *, int); #endif /* _QUAGGA_OSPF_VTY_H */ |