[rtems commit] nfsclient/src/dirutils.c: Fix missing prototype warnings

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


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

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

nfsclient/src/dirutils.c: Fix missing prototype warnings

---

 cpukit/libfs/src/nfsclient/src/dirutils.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/cpukit/libfs/src/nfsclient/src/dirutils.c b/cpukit/libfs/src/nfsclient/src/dirutils.c
index d5fd1be..e392b9a 100644
--- a/cpukit/libfs/src/nfsclient/src/dirutils.c
+++ b/cpukit/libfs/src/nfsclient/src/dirutils.c
@@ -92,6 +92,18 @@
 #endif
 
 #ifndef __vxworks
+/*
+ *  Prototypes to avoid warnings
+ */
+int pwd(void);
+int ls(char *dir, char *opts);
+int cp(char *from, char *to, char *opts);
+int ln(char *to, char *name, char *opts);
+int rm(char *path);
+int cd(char *path);
+#endif
+
+#ifndef __vxworks
 int
 pwd(void)
 {




More information about the vc mailing list