Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/common/nvpair Initialize variables....
details: https://anonhg.NetBSD.org/src/rev/06bd0cfeaa81
branches: trunk
changeset: 337307:06bd0cfeaa81
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Apr 10 22:29:35 2015 +0000
description:
Initialize variables. Don't bother supporting nv doubles.
diffstat:
external/cddl/osnet/dist/common/nvpair/nvpair.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 5389ea9d8f4e -r 06bd0cfeaa81 external/cddl/osnet/dist/common/nvpair/nvpair.c
--- a/external/cddl/osnet/dist/common/nvpair/nvpair.c Fri Apr 10 22:28:27 2015 +0000
+++ b/external/cddl/osnet/dist/common/nvpair/nvpair.c Fri Apr 10 22:29:35 2015 +0000
@@ -1606,10 +1606,10 @@
{
nvpair_t *nvp;
const char *np;
- char *sepp;
+ char *sepp = NULL;
char *idxp, *idxep;
nvlist_t **nva;
- long idx;
+ long idx = -1;
int n;
if (ip)
@@ -3008,11 +3008,13 @@
*/
ret = xdr_longlong_t(xdr, (void *)buf);
break;
+#ifndef __NetBSD__
#if !defined(_KERNEL)
case DATA_TYPE_DOUBLE:
ret = xdr_double(xdr, (void *)buf);
break;
#endif
+#endif
case DATA_TYPE_STRING:
ret = xdr_string(xdr, &buf, buflen - 1);
break;
Home |
Main Index |
Thread Index |
Old Index