[rtems commit] nfsclient: Fix warnings
Sebastian Huber
sebh at rtems.org
Wed Jun 5 15:14:30 UTC 2013
Module: rtems
Branch: master
Commit: a2854fd55e32adb9e34f0b95f9951e9d97f7676d
Changeset: http://git.rtems.org/rtems/commit/?id=a2854fd55e32adb9e34f0b95f9951e9d97f7676d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 4 15:43:39 2013 +0200
nfsclient: Fix warnings
---
cpukit/libfs/src/nfsclient/src/rpcio.c | 2 +-
cpukit/libfs/src/nfsclient/src/rpcio.h | 9 ++-------
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/cpukit/libfs/src/nfsclient/src/rpcio.c b/cpukit/libfs/src/nfsclient/src/rpcio.c
index 881eeda..cddcb32 100644
--- a/cpukit/libfs/src/nfsclient/src/rpcio.c
+++ b/cpukit/libfs/src/nfsclient/src/rpcio.c
@@ -1052,7 +1052,7 @@ enum clnt_stat err;
return RPC_SUCCESS;
}
-void
+static void
rpcUdpClntDestroy(RpcUdpClnt xact)
{
rpcUdpServerDestroy(xact->server);
diff --git a/cpukit/libfs/src/nfsclient/src/rpcio.h b/cpukit/libfs/src/nfsclient/src/rpcio.h
index 02cd34f..bc88e76 100644
--- a/cpukit/libfs/src/nfsclient/src/rpcio.h
+++ b/cpukit/libfs/src/nfsclient/src/rpcio.h
@@ -63,16 +63,14 @@
* @{
*/
-#ifdef __rtems
-#include <rtems.h>
-#endif
-
#include <rpc/rpc.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <stdarg.h>
+#include "librtemsNfs.h"
+
typedef struct RpcUdpServerRec_ *RpcUdpServer;
typedef struct RpcUdpXactRec_ *RpcUdpXact;
@@ -80,9 +78,6 @@ typedef RpcUdpXact RpcUdpClnt;
#define RPCIOD_DEFAULT_ID 0xdef10000
-int
-rpcUdpInit(void);
-
enum clnt_stat
rpcUdpServerCreate(
struct sockaddr_in *paddr,
More information about the vc
mailing list