]> git.proxmox.com Git - mirror_lxc.git/commitdiff
confile: update comment: replace p+12 with p+8
author0x0916 <w@laoqinren.net>
Tue, 27 Jun 2017 03:38:23 +0000 (11:38 +0800)
committer0x0916 <w@laoqinren.net>
Thu, 29 Jun 2017 05:18:41 +0000 (13:18 +0800)
Signed-off-by: 0x0916 <w@laoqinren.net>
src/lxc/confile.c

index c3fb1ec713ef73ef24135c9c8df781356d897634..ca50946b906a36890e0dfc187a3ada6f9cefdb93 100644 (file)
@@ -401,7 +401,7 @@ static int set_config_net_type(const char *key, const char *value,
 }
 
 /*
- * If you have p="lxc.net.0.link", pass it p+12
+ * If you have p="lxc.net.0.link", pass it p+8
  * to get back '0' (the index of the nic).
  */
 static int get_network_netdev_idx(const char *key)
@@ -419,7 +419,7 @@ static int get_network_netdev_idx(const char *key)
 }
 
 /*
- * If you have p="lxc.net.0", pass this p+12 and it will return
+ * If you have p="lxc.net.0", pass this p+8 and it will return
  * the netdev of the first configured nic.
  */
 static struct lxc_netdev *get_netdev_from_key(const char *key,