diff --git a/tests/lib/libc/net/Makefile b/tests/lib/libc/net/Makefile index eaa9e7a5d6f8..de53a2a25f98 100644 --- a/tests/lib/libc/net/Makefile +++ b/tests/lib/libc/net/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2011/01/13 01:56:44 pgoyette Exp $ +# $NetBSD: Makefile,v 1.4 2011/01/13 02:24:51 pgoyette Exp $ .include @@ -18,6 +18,6 @@ PROGS+= h_nsd_recurse PROGS+= h_protoent PROGS+= h_servent -LDADD.h_nsd_dispatch+= -lpthread +LDADD.h_nsd_recurse+= -lpthread .include diff --git a/tests/lib/libc/net/h_nsd_recurse.c b/tests/lib/libc/net/h_nsd_recurse.c index 9c4cd3b4bae7..2f315d2b4194 100644 --- a/tests/lib/libc/net/h_nsd_recurse.c +++ b/tests/lib/libc/net/h_nsd_recurse.c @@ -1,4 +1,4 @@ -/* $NetBSD: h_nsd_recurse.c,v 1.1 2011/01/13 01:56:44 pgoyette Exp $ */ +/* $NetBSD: h_nsd_recurse.c,v 1.2 2011/01/13 02:24:51 pgoyette Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include __COPYRIGHT("@(#) Copyright (c) 2008\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: h_nsd_recurse.c,v 1.1 2011/01/13 01:56:44 pgoyette Exp $"); +__RCSID("$NetBSD: h_nsd_recurse.c,v 1.2 2011/01/13 02:24:51 pgoyette Exp $"); #define _REENTRANT @@ -45,7 +45,7 @@ __RCSID("$NetBSD: h_nsd_recurse.c,v 1.1 2011/01/13 01:56:44 pgoyette Exp $"); static const ns_src testsrc[] = { { "test", NS_SUCCESS }, - { 0 } + { NULL, 0 } }; static int @@ -62,7 +62,7 @@ func2(void *rv, void *cb_data, va_list ap) { static const ns_dtab dtab[] = { { "test", func3, NULL }, - { 0 } + { NULL, NULL, NULL } }; int r; @@ -78,7 +78,7 @@ func1(void) { static const ns_dtab dtab[] = { { "test", func2, NULL }, - { 0 } + { NULL, NULL, NULL } }; int r;