summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Harsch <mike@harschsystems.com>2012-10-22 16:45:41 -0600
committerMike Harsch <mike@harschsystems.com>2012-10-22 16:45:41 -0600
commita2e122452f57c90a1d4750155f18bc79cd508d58 (patch)
treec4b94ad8aa1b391ec44a69cc3c5f0ff97cb9e71b
parentdfb9587ea397fcdca0c69732624a2ed84062c7de (diff)
downloadlibnvpair-a2e122452f57c90a1d4750155f18bc79cd508d58.tar.gz
comment out xdr stuff
-rw-r--r--nvpair.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/nvpair.c b/nvpair.c
index 1aed0a3..b8f4aab 100644
--- a/nvpair.c
+++ b/nvpair.c
@@ -29,8 +29,8 @@
#include <sys/int_limits.h>
#include "nvpair.h"
#include "nvpair_impl.h"
-#include <rpc/types.h>
-#include <rpc/xdr.h>
+//#include <rpc/types.h>
+//#include <rpc/xdr.h>
#if defined(_KERNEL) && !defined(_BOOT)
#include <sys/varargs.h>
@@ -2242,7 +2242,7 @@ nvs_embedded_nvl_array(nvstream_t *nvs, nvpair_t *nvp, size_t *size)
}
static int nvs_native(nvstream_t *, nvlist_t *, char *, size_t *);
-static int nvs_xdr(nvstream_t *, nvlist_t *, char *, size_t *);
+//static int nvs_xdr(nvstream_t *, nvlist_t *, char *, size_t *);
/*
* Common routine for nvlist operations:
@@ -2319,9 +2319,9 @@ nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding,
return (ENOTSUP);
err = nvs_native(&nvs, nvl, buf, buflen);
break;
- case NV_ENCODE_XDR:
- err = nvs_xdr(&nvs, nvl, buf, buflen);
- break;
+// case NV_ENCODE_XDR:
+// err = nvs_xdr(&nvs, nvl, buf, buflen);
+// break;
default:
err = ENOTSUP;
break;
@@ -2808,7 +2808,7 @@ nvs_native(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen)
return (err);
}
-
+#if 0
/*
* XDR encoding functions
*
@@ -3295,3 +3295,4 @@ nvs_xdr(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen)
return (err);
}
+#endif