From 072828a1f5447ef64f92b2c57b8681a4e254b0f8 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 10 Oct 2012 14:42:21 +0100 Subject: [PATCH] tests: Tidy up loopback adapter tests Remove the unused h_errno extern, which in turn removes the need for disabling strict prototype warnings in the Makefile Use roken.h, instead of hardcoding system libraries Change-Id: Ie654c77ff60ed14fc3b659fa3eb527535be71164 Reviewed-on: http://gerrit.openafs.org/8228 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- tests/common/Makefile.in | 1 - tests/common/network.c | 10 +++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/common/Makefile.in b/tests/common/Makefile.in index 2909f6134..f71d9d37f 100644 --- a/tests/common/Makefile.in +++ b/tests/common/Makefile.in @@ -5,7 +5,6 @@ include @TOP_OBJDIR@/src/config/Makefile.config include @TOP_OBJDIR@/src/config/Makefile.pthread MODULE_CFLAGS=-I$(srcdir)/.. -I$(srcdir)/../.. -CFLAGS_network.o = -Wno-strict-prototypes all check test tests: config.o servers.o ubik.o rxkad.o network.o diff --git a/tests/common/network.c b/tests/common/network.c index e605b2853..145ce9583 100644 --- a/tests/common/network.c +++ b/tests/common/network.c @@ -1,18 +1,14 @@ #include #include + +#include + #include #include -#include -#include -#include -#include - #include #include "common.h" -extern int h_errno; - /*! Check if the current machine's hostname resolves to the loopback * network. */ -- 2.39.5