mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:33:42 +00:00
Fix warnings here.
This commit is contained in:
parent
f90a5f6f1a
commit
5862ff529e
@ -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>
|
2004-10-07 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
* vtysh.c, vtysh.h, vtysh_config.c, vtysh_main.c: Fix compiler
|
* vtysh.c, vtysh.h, vtysh_config.c, vtysh_main.c: Fix compiler
|
||||||
|
@ -1697,7 +1697,8 @@ DEFUN (vtysh_show_running_daemons,
|
|||||||
|
|
||||||
/* Execute command in child process. */
|
/* Execute command in child process. */
|
||||||
int
|
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;
|
int ret;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
@ -46,7 +46,7 @@ static struct pam_conv conv =
|
|||||||
};
|
};
|
||||||
|
|
||||||
int
|
int
|
||||||
vtysh_pam (char *user)
|
vtysh_pam (const char *user)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
pam_handle_t *pamh = NULL;
|
pam_handle_t *pamh = NULL;
|
||||||
@ -114,7 +114,7 @@ user_free (struct user *user)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct user *
|
struct user *
|
||||||
user_lookup (char *name)
|
user_lookup (const char *name)
|
||||||
{
|
{
|
||||||
struct listnode *nn;
|
struct listnode *nn;
|
||||||
struct user *user;
|
struct user *user;
|
||||||
@ -141,7 +141,7 @@ user_config_write ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct user *
|
struct user *
|
||||||
user_get (char *name)
|
user_get (const char *name)
|
||||||
{
|
{
|
||||||
struct user *user;
|
struct user *user;
|
||||||
user = user_lookup (name);
|
user = user_lookup (name);
|
||||||
|
Loading…
Reference in New Issue
Block a user