summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-07-22 13:12:22 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-07-22 13:12:22 -0700
commit7ce2a26cd71e911aff90ff181555e8f362127a6c (patch)
tree0e19501d24b53e3d44eb7f07c5a76c7312884508
parentc8ed14ddb63a0ecbab5835ce2bb044afbc15895d (diff)
Fixup of some last remaining differences between stg and git
-rw-r--r--lib/vty.c8
-rw-r--r--ripd/ripd.c2
-rw-r--r--vtysh/vtysh.c1
-rw-r--r--vtysh/vtysh_user.c3
4 files changed, 6 insertions, 8 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 54bbef65a9..7ced104014 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2399,7 +2399,7 @@ vty_read_config (char *config_file,
{
fprintf (stderr, "%s: failed to open configuration file %s: %s\n",
__func__, config_default_dir, safe_strerror (errno));
-
+
confp = vty_use_backup_config (config_default_dir);
if (confp)
{
@@ -2409,10 +2409,10 @@ vty_read_config (char *config_file,
else
{
fprintf (stderr, "can't open configuration file [%s]\n",
- config_default_dir);
- exit (1);
+ config_default_dir);
+ exit (1);
}
- }
+ }
else
fullpath = config_default_dir;
}
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 8c0470e64e..ee7dfc3cba 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -2159,7 +2159,7 @@ rip_output_process (struct connected *ifc, struct sockaddr_in *to,
/* Reset stream and RTE counter. */
stream_reset (s);
- rtemax = RIP_MAX_RTE;
+ rtemax = (RIP_PACKET_MAXSIZ - 4) / 20;
/* Get RIP interface. */
ri = ifc->ifp->info;
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index b1c9f453b6..bf2d01ca20 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2020,6 +2020,7 @@ backup_config_file (const char *fbackup)
static int
write_config_integrated(void)
{
+ int ret;
u_int i;
char line[] = "write terminal\n";
FILE *fp, *fp1;
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index 27a5fdf98f..a17f7a7176 100644
--- a/vtysh/vtysh_user.c
+++ b/vtysh/vtysh_user.c
@@ -38,9 +38,6 @@
#include "linklist.h"
#include "command.h"
-extern struct list *config_top;
-extern void config_add_line(struct list *config, const char *line);
-
/*
* Compiler is warning about prototypes not being declared.
* The DEFUNSH and DEFUN macro's are messing with the