Commit 59978166 by Dongsheng Yang Committed by Serge Hallyn

network: convert param ifname to const.

We should not modify ifname in lxc_netdev_move_by_name(), making it as const in param list will make our code more robust. Signed-off-by: 's avatarDongsheng Yang <yangds.fnst@cn.fujitsu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent ecec0126
......@@ -136,7 +136,7 @@ out:
return err;
}
int lxc_netdev_move_by_name(char *ifname, pid_t pid)
int lxc_netdev_move_by_name(const char *ifname, pid_t pid)
{
int index;
......
......@@ -32,7 +32,7 @@ extern int lxc_convert_mac(char *macaddr, struct sockaddr *sockaddr);
* Move a device between namespaces
*/
extern int lxc_netdev_move_by_index(int ifindex, pid_t pid);
extern int lxc_netdev_move_by_name(char *ifname, pid_t pid);
extern int lxc_netdev_move_by_name(const char *ifname, pid_t pid);
/*
* Delete a network device
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment