Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/net Re-add missing -lpthread and fix some str...
details: https://anonhg.NetBSD.org/src/rev/ef02d96c0504
branches: trunk
changeset: 760784:ef02d96c0504
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jan 13 02:24:51 2011 +0000
description:
Re-add missing -lpthread and fix some structure inializers (not sure how
these ever compiled)
diffstat:
tests/lib/libc/net/Makefile | 4 ++--
tests/lib/libc/net/h_nsd_recurse.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (62 lines):
diff -r 4dc00d30fcbe -r ef02d96c0504 tests/lib/libc/net/Makefile
--- a/tests/lib/libc/net/Makefile Thu Jan 13 01:57:48 2011 +0000
+++ b/tests/lib/libc/net/Makefile Thu Jan 13 02:24:51 2011 +0000
@@ -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 <bsd.own.mk>
@@ -18,6 +18,6 @@
PROGS+= h_protoent
PROGS+= h_servent
-LDADD.h_nsd_dispatch+= -lpthread
+LDADD.h_nsd_recurse+= -lpthread
.include <bsd.test.mk>
diff -r 4dc00d30fcbe -r ef02d96c0504 tests/lib/libc/net/h_nsd_recurse.c
--- a/tests/lib/libc/net/h_nsd_recurse.c Thu Jan 13 01:57:48 2011 +0000
+++ b/tests/lib/libc/net/h_nsd_recurse.c Thu Jan 13 02:24:51 2011 +0000
@@ -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 <sys/cdefs.h>
__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 @@
static const ns_src testsrc[] = {
{ "test", NS_SUCCESS },
- { 0 }
+ { NULL, 0 }
};
static int
@@ -62,7 +62,7 @@
{
static const ns_dtab dtab[] = {
{ "test", func3, NULL },
- { 0 }
+ { NULL, NULL, NULL }
};
int r;
@@ -78,7 +78,7 @@
{
static const ns_dtab dtab[] = {
{ "test", func2, NULL },
- { 0 }
+ { NULL, NULL, NULL }
};
int r;
Home |
Main Index |
Thread Index |
Old Index