[rtems commit] getdents.c: Fix missing prototype warnings

Joel Sherrill joel at rtems.org
Sun Sep 22 15:32:20 UTC 2013


Module:    rtems
Branch:    master
Commit:    37a7c27e29f0c2d91785821410b0d4c5f18ed310
Changeset: http://git.rtems.org/rtems/commit/?id=37a7c27e29f0c2d91785821410b0d4c5f18ed310

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Sep 22 10:34:20 2013 -0500

getdents.c: Fix missing prototype warnings

---

 cpukit/libcsupport/src/getdents.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/cpukit/libcsupport/src/getdents.c b/cpukit/libcsupport/src/getdents.c
index cb65015..92f5fc0 100644
--- a/cpukit/libcsupport/src/getdents.c
+++ b/cpukit/libcsupport/src/getdents.c
@@ -6,7 +6,7 @@
  */
 
 /*
- *  COPYRIGHT (c) 1989-1999.
+ *  COPYRIGHT (c) 1989-2013.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -24,6 +24,15 @@
 #include <rtems/libio_.h>
 #include <rtems/seterr.h>
 
+/*
+ *  Prototypes to avoid warnings
+ */
+int getdents(
+  int   dd_fd,
+  char *dd_buf,
+  int   dd_len
+);
+
 /**
  *  SVR4 and SVID extension required by Newlib readdir() family.
  *




More information about the vc mailing list