Mostly just retrun => return and misleading comments at all.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
return new;
}
-/* Retrun string representation of communities attribute. */
+/* Return string representation of communities attribute. */
char *community_str(struct community *com, bool make_json)
{
if (!com)
return false;
}
-/* If two aspath have same value then return 1 else return 0. This
- function is used by hash package. */
bool community_cmp(const struct community *com1, const struct community *com2)
{
if (com1 == NULL && com2 == NULL)
return new;
}
-/* Retrun string representation of communities attribute. */
+/* Return string representation of ecommunities attribute. */
char *ecommunity_str(struct ecommunity *ecom)
{
if (!ecom->str)
}
}
-/* Retrun string representation of communities attribute. */
+/* Return string representation of lcommunities attribute. */
char *lcommunity_str(struct lcommunity *lcom, bool make_json)
{
if (!lcom)
== MATCH_FAILED)
return NULL;
- /* Retrun BGP version. Zebra bgpd only support version 4. */
+ /* Return BGP version. Zebra bgpd only support version 4. */
version = (0x80 >> (BGP_VERSION_4 - 1));
/* Return octet string length 1. */
}
}
-/* Retrun 1 when plist already include pentry policy. */
+/* Return 1 when plist already include pentry policy. */
static struct prefix_list_entry *
prefix_entry_dup_check(struct prefix_list *plist, struct prefix_list_entry *new)
{
if (!rip)
return NULL;
- /* Retrun global counter. */
+ /* Return global counter. */
switch (v->magic) {
case RIP2GLOBALROUTECHANGES:
return SNMP_INTEGER(rip->counters.route_changes);