]> git.proxmox.com Git - mirror_frr.git/commitdiff
Correct code style as requested by review of PR839
authorOlivier Dugeon <olivier.dugeon@orange.com>
Mon, 31 Jul 2017 14:39:00 +0000 (16:39 +0200)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Mon, 31 Jul 2017 14:39:00 +0000 (16:39 +0200)
 * As per https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
script result, remove extra white space and add TAB when necessary

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
ospfd/ospf_opaque.h

index 60435e502eec4b7a4d3bffc62ba5ed2ee21bd51b..2470cd2e2b2f1d7bb90cf8acb288c1c0a7c0d501 100644 (file)
  * used for various LSA opaque usage e.g. Traffic Engineering.
  */
 struct tlv_header {
-  u_int16_t     type;                   /* Type of Value */
-  u_int16_t     length;                 /* Length of Value portion only, in bytes */
+       u_int16_t type;         /* Type of Value */
+       u_int16_t length;       /* Length of Value portion only, in bytes */
 };
 
-#define TLV_HDR_SIZE \
-        (sizeof (struct tlv_header))
+#define TLV_HDR_SIZE   (sizeof(struct tlv_header))
 
 #define TLV_BODY_SIZE(tlvh) \
-        (ROUNDUP (ntohs ((tlvh)->length), sizeof (u_int32_t)))
+       (ROUNDUP(ntohs((tlvh)->length), sizeof(u_int32_t)))
 
-#define TLV_SIZE(tlvh) \
-        (TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))
+#define TLV_SIZE(tlvh) (TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))
 
 #define TLV_HDR_TOP(lsah) \
-        (struct tlv_header *)((char *)(lsah) + OSPF_LSA_HEADER_SIZE)
+       (struct tlv_header *)((char *)(lsah) + OSPF_LSA_HEADER_SIZE)
 
 #define TLV_HDR_NEXT(tlvh) \
-        (struct tlv_header *)((char *)(tlvh) + TLV_SIZE(tlvh))
+       (struct tlv_header *)((char *)(tlvh) + TLV_SIZE(tlvh))
 
 #define TLV_HDR_SUBTLV(tlvh) \
-        (struct tlv_header *)((char *)(tlvh) + TLV_HDR_SIZE)
+       (struct tlv_header *)((char *)(tlvh) + TLV_HDR_SIZE)
 
-#define TLV_DATA(tlvh)     (void *)((char *)(tlvh) + TLV_HDR_SIZE)
+#define TLV_DATA(tlvh) (void *)((char *)(tlvh) + TLV_HDR_SIZE)
 
-#define TLV_TYPE(tlvh)     tlvh.header.type
-#define TLV_LEN(tlvh)      tlvh.header.length
-#define TLV_HDR(tlvh)      tlvh.header
+#define TLV_TYPE(tlvh) tlvh.header.type
+#define TLV_LEN(tlvh)  tlvh.header.length
+#define TLV_HDR(tlvh)  tlvh.header
 
 /* Following declaration concerns the Opaque LSA management */
 enum lsa_opcode {
@@ -148,7 +146,7 @@ extern int ospf_opaque_new_if(struct interface *ifp);
 extern int ospf_opaque_del_if(struct interface *ifp);
 extern void ospf_opaque_ism_change(struct ospf_interface *oi, int old_status);
 extern void ospf_opaque_nsm_change(struct ospf_neighbor *nbr, int old_status);
-extern void ospf_opaque_config_write_router(struct vty *vty, struct ospf *);
+extern void ospf_opaque_config_write_router(struct vty *vty, struct ospf *ospf);
 extern void ospf_opaque_config_write_if(struct vty *vty, struct interface *ifp);
 extern void ospf_opaque_config_write_debug(struct vty *vty);
 extern void show_opaque_info_detail(struct vty *vty, struct ospf_lsa *lsa);
@@ -156,7 +154,7 @@ extern void ospf_opaque_lsa_dump(struct stream *s, u_int16_t length);
 
 extern void ospf_opaque_lsa_originate_schedule(struct ospf_interface *oi,
                                               int *init_delay);
-extern struct ospf_lsa *ospf_opaque_lsa_install(struct ospf_lsa *,
+extern struct ospf_lsa *ospf_opaque_lsa_install(struct ospf_lsa *lsa,
                                                int rt_recalc);
 extern struct ospf_lsa *ospf_opaque_lsa_refresh(struct ospf_lsa *lsa);