]> git.ipfire.org Git - people/ms/rstp.git/commitdiff
fix build
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 21 Mar 2007 23:25:04 +0000 (16:25 -0700)
committerStephen Hemminger <shemminger@linux-foundation.org>
Wed, 21 Mar 2007 23:25:04 +0000 (16:25 -0700)
ctl_main.c

index 6e2b8402e7c1cdef444a1809fef36ca0fa4b5a2f..8d258444124448ae7a5e2b7892db7fc6ef244eb7 100644 (file)
@@ -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)