summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-02 00:06:18 +0100
committerSven Eden <yamakuzure@gmx.net>2017-07-17 17:58:36 +0200
commit321384507f1223033fc0fb2969f6e29598ba7d92 (patch)
tree09ad09aed5e0cb8fd44a6cdf95cf11fd27038a62 /src/basic/socket-util.c
parentde3f86951e5c91756ea9d9b5c9e381b6f293a3be (diff)
fs-util: unify code we use to check if dirent's d_name is "." or ".."
We use different idioms at different places. Let's replace this is the one true new idiom, that is even a bit faster...
Diffstat (limited to 'src/basic/socket-util.c')
-rw-r--r--src/basic/socket-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c
index 6a8ca1d7e..9ec901261 100644
--- a/src/basic/socket-util.c
+++ b/src/basic/socket-util.c
@@ -881,7 +881,7 @@ bool ifname_valid(const char *p) {
if (strlen(p) >= IFNAMSIZ)
return false;
- if (STR_IN_SET(p, ".", ".."))
+ if (dot_or_dot_dot(p))
return false;
while (*p) {