summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/rtems/sys/dirent.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index feae2ce4c..a38b6c377 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-26 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libc/sys/rtems/sys/dirent.h (scandir):
+ Add const to "select" parameter.
+
2011-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/iconv/iconv.tex: Rename node "Introduction" into
diff --git a/newlib/libc/sys/rtems/sys/dirent.h b/newlib/libc/sys/rtems/sys/dirent.h
index 9cd4f3657..c52c7bcf7 100644
--- a/newlib/libc/sys/rtems/sys/dirent.h
+++ b/newlib/libc/sys/rtems/sys/dirent.h
@@ -50,7 +50,7 @@ struct dirent {
int scandir ( const char *dirname,
struct dirent *** namelist,
- int (*select)(struct dirent *),
+ int (*select)(const struct dirent *),
int (*dcomp)(const struct dirent **, const struct dirent **)
);