Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net Fix non-ELF case in _nsloadmod().
details: https://anonhg.NetBSD.org/src/rev/3bb241eb3269
branches: trunk
changeset: 569824:3bb241eb3269
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Sep 08 10:52:56 2004 +0000
description:
Fix non-ELF case in _nsloadmod().
diffstat:
lib/libc/net/nsdispatch.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r f367427b6d25 -r 3bb241eb3269 lib/libc/net/nsdispatch.c
--- a/lib/libc/net/nsdispatch.c Wed Sep 08 10:20:15 2004 +0000
+++ b/lib/libc/net/nsdispatch.c Wed Sep 08 10:52:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nsdispatch.c,v 1.23 2004/08/02 00:19:34 thorpej Exp $ */
+/* $NetBSD: nsdispatch.c,v 1.24 2004/09/08 10:52:56 simonb Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nsdispatch.c,v 1.23 2004/08/02 00:19:34 thorpej Exp $");
+__RCSID("$NetBSD: nsdispatch.c,v 1.24 2004/09/08 10:52:56 simonb Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -270,7 +270,9 @@
static int
_nsloadmod(const char *source, nss_module_register_fn reg_fn)
{
+#ifdef __ELF__
char buf[PATH_MAX];
+#endif
ns_mod mod, *new;
memset(&mod, 0, sizeof(mod));
Home |
Main Index |
Thread Index |
Old Index