summaryrefslogtreecommitdiffstats
path: root/ctl_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctl_main.c')
-rw-r--r--ctl_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctl_main.c b/ctl_main.c
index 6e2b840..8d25844 100644
--- a/ctl_main.c
+++ b/ctl_main.c
@@ -357,9 +357,9 @@ static int do_showport(int br_index, const char *port_name,
static int not_dot_dotdot(const struct dirent *entry)
{
- char *n = entry->d_name;
- return
- !(n[0] == '.' && (n[1] == 0 || (n[1] == '.' && n[2] == 0)));
+ const char *n = entry->d_name;
+
+ return !(n[0] == '.' && (n[1] == 0 || (n[1] == '.' && n[2] == 0)));
}
static int cmd_showport(int argc, char *const* argv)