]> git.puffer.fish Git - mirror/frr.git/commitdiff
Fix warnings here.
authorhasso <hasso>
Mon, 11 Oct 2004 13:20:40 +0000 (13:20 +0000)
committerhasso <hasso>
Mon, 11 Oct 2004 13:20:40 +0000 (13:20 +0000)
vtysh/ChangeLog
vtysh/vtysh.c
vtysh/vtysh_user.c

index 80c2295b10d1947fda78e59c74f5aaade5ea6c0c..df5eccd316753b8b2dc3b8d1db4eb1fe9f850c1d 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-11 Hasso Tepper <hasso at quagga.net>
+
+       * vtysh.c, vtysh_user.c: Make more strings const.
+       
 2004-10-07 Hasso Tepper <hasso at quagga.net>
 
        * vtysh.c, vtysh.h, vtysh_config.c, vtysh_main.c: Fix compiler
index 733bb437c4f0dd4508c7312fc1df167350b272d7..0df5ddbbb66ef2efcd4df77e71a25eb023dc2445 100644 (file)
@@ -1697,7 +1697,8 @@ DEFUN (vtysh_show_running_daemons,
 
 /* Execute command in child process. */
 int
-execute_command (const char *command, int argc, char *arg1, char *arg2)
+execute_command (const char *command, int argc, const char *arg1,
+                const char *arg2)
 {
   int ret;
   pid_t pid;
index 923301031953544514e4079f9afe01680676363c..f84cca83d07c454c770ba279815944e073663ea3 100644 (file)
@@ -46,7 +46,7 @@ static struct pam_conv conv =
 };
 
 int
-vtysh_pam (char *user)
+vtysh_pam (const char *user)
 {
   int ret;
   pam_handle_t *pamh = NULL;
@@ -114,7 +114,7 @@ user_free (struct user *user)
 }
 
 struct user *
-user_lookup (char *name)
+user_lookup (const char *name)
 {
   struct listnode *nn;
   struct user *user;
@@ -141,7 +141,7 @@ user_config_write ()
 }
 
 struct user *
-user_get (char *name)
+user_get (const char *name)
 {
   struct user *user;
   user = user_lookup (name);