summaryrefslogtreecommitdiff
path: root/sharpd/sharp_vty.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-13 12:08:38 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-13 12:08:38 -0400
commit1f35b46a2f35d59b86ed3ee557aa1c9fcf2fcac9 (patch)
tree27de606b3510b126766ac7a0ac9eb8ddf4573ab0 /sharpd/sharp_vty.c
parentd47ae3db4cf14c72d8468d61113ac88e19235791 (diff)
parentc1a003878246ccc84ab5986558ca959f4545f738 (diff)
Merge branch 'master' into docuser
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'sharpd/sharp_vty.c')
-rw-r--r--sharpd/sharp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index 0e7d1f2c29..3065ad19c3 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -71,7 +71,7 @@ DEFPY (install_routes,
zlog_debug("Inserting %ld routes", routes);
temp = ntohl(p.u.prefix4.s_addr);
- for (i = 0 ; i < routes ; i++) {
+ for (i = 0; i < routes; i++) {
route_add(&p, &nhop);
p.u.prefix4.s_addr = htonl(++temp);
}
@@ -134,7 +134,7 @@ DEFPY (remove_routes,
zlog_debug("Removing %ld routes", routes);
temp = ntohl(p.u.prefix4.s_addr);
- for (i = 0; i < routes ; i++) {
+ for (i = 0; i < routes; i++) {
route_delete(&p);
p.u.prefix4.s_addr = htonl(++temp);
}