summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-04 16:19:10 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-09 13:39:09 +0100
commit227e9ce2557b36570dd157d82774a15eb26dc99a (patch)
tree9bce3324bb0105e317bedee8797d52b9b904b277 /src/shared
parentether-addr-util: introduce parse_ether_addr() (diff)
downloadsystemd-227e9ce2557b36570dd157d82774a15eb26dc99a.tar.xz
systemd-227e9ce2557b36570dd157d82774a15eb26dc99a.zip
ether-addr-util: replace ether_addr_from_string() with parse_ether_addr()
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/conf-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 9a367d757f..29f28af444 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -1350,7 +1350,7 @@ int config_parse_hwaddr(
if (!n)
return log_oom();
- r = ether_addr_from_string(rvalue, n);
+ r = parse_ether_addr(rvalue, n);
if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r,
"Not a valid MAC address, ignoring assignment: %s", rvalue);
@@ -1407,7 +1407,7 @@ int config_parse_hwaddrs(
if (!n)
return log_oom();
- r = ether_addr_from_string(word, n);
+ r = parse_ether_addr(word, n);
if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r,
"Not a valid MAC address, ignoring: %s", word);