diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-09-15 12:51:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-09-22 11:30:38 +0200 |
commit | d60230bded854fe5a357c77038cf6089defcfd24 (patch) | |
tree | 6c8b3dc4dee496cda1e1f9da5f53b1fa58a2e5ef /lib | |
parent | 581272f8c59a71e8f64a15b6b33bb0d1fc5ac6ba (diff) | |
download | barebox-d60230bded854fe5a357c77038cf6089defcfd24.tar.gz barebox-d60230bded854fe5a357c77038cf6089defcfd24.tar.xz |
convert users to %pI4
Convert users of ip_to_string() and print_IPaddr() to %pI4 and
remove the now unused functions.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parameter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parameter.c b/lib/parameter.c index 656a6037c6..a754fb8a94 100644 --- a/lib/parameter.c +++ b/lib/parameter.c @@ -642,7 +642,7 @@ static const char *param_ip_get(struct device_d *dev, struct param_d *p) } free(p->value); - p->value = xstrdup(ip_to_string(*pi->ip)); + p->value = xasprintf("%pI4", pi->ip); return p->value; } |