From 259c314d142abd6f9295047c116235cfdd119563 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 17 Mar 2014 00:17:02 +0100 Subject: Remove imp.h and exp.h header files These include files don't have a function any more, remove them. --- src/portab/Makefile.ng | 2 +- src/portab/exp.h | 21 --------------------- src/portab/imp.h | 21 --------------------- src/portab/portabtest.c | 3 --- src/portab/strdup.c | 3 --- src/portab/strlcpy.c | 4 ---- src/portab/strndup.c | 3 --- src/portab/waitpid.c | 3 --- 8 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 src/portab/exp.h delete mode 100644 src/portab/imp.h (limited to 'src/portab') diff --git a/src/portab/Makefile.ng b/src/portab/Makefile.ng index 17edbdf2..c9638034 100644 --- a/src/portab/Makefile.ng +++ b/src/portab/Makefile.ng @@ -25,7 +25,7 @@ portabtest_LDFLAGS = -L. portabtest_LDADD = -lngportab -noinst_HEADERS = imp.h exp.h portab.h splint.h +noinst_HEADERS = portab.h splint.h maintainer-clean-local: rm -f Makefile Makefile.in Makefile.am diff --git a/src/portab/exp.h b/src/portab/exp.h deleted file mode 100644 index d678b99a..00000000 --- a/src/portab/exp.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) - * - * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen - * der GNU General Public License (GPL), wie von der Free Software Foundation - * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 - * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. - * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. - */ - -/** - * @file - * "Export Header" which makes sure, that global functions are not "extern". - */ - -#undef GLOBAL -#define GLOBAL - -/* -eof- */ diff --git a/src/portab/imp.h b/src/portab/imp.h deleted file mode 100644 index 68b5aeee..00000000 --- a/src/portab/imp.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) - * - * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen - * der GNU General Public License (GPL), wie von der Free Software Foundation - * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 - * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. - * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. - */ - -/** - * @file - * "Import Header" which makes sure that global functions are defined "extern". - */ - -#undef GLOBAL -#define GLOBAL extern - -/* -eof- */ diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c index 3602feec..d7f33f99 100644 --- a/src/portab/portabtest.c +++ b/src/portab/portabtest.c @@ -16,14 +16,11 @@ * Test program for portab.h and friends ;-) */ -#include "imp.h" #include #include #include #include -#include "exp.h" - int allow_severity = 0, deny_severity = 0; static void diff --git a/src/portab/strdup.c b/src/portab/strdup.c index 795af726..adb19e7a 100644 --- a/src/portab/strdup.c +++ b/src/portab/strdup.c @@ -11,13 +11,10 @@ #ifndef HAVE_STRDUP -#include "imp.h" #include #include #include -#include "exp.h" - GLOBAL char * strdup(const char *s) { diff --git a/src/portab/strlcpy.c b/src/portab/strlcpy.c index ce90a423..a7f5e2f1 100644 --- a/src/portab/strlcpy.c +++ b/src/portab/strlcpy.c @@ -22,13 +22,9 @@ * */ -#include "imp.h" #include #include -#include "exp.h" - - #ifndef HAVE_STRLCAT GLOBAL size_t diff --git a/src/portab/strndup.c b/src/portab/strndup.c index 578f324c..d63b9728 100644 --- a/src/portab/strndup.c +++ b/src/portab/strndup.c @@ -11,13 +11,10 @@ #ifndef HAVE_STRNDUP -#include "imp.h" #include #include #include -#include "exp.h" - GLOBAL char * strndup(const char *s, size_t maxlen) { diff --git a/src/portab/waitpid.c b/src/portab/waitpid.c index 5846bd8f..921dd3d6 100644 --- a/src/portab/waitpid.c +++ b/src/portab/waitpid.c @@ -12,13 +12,10 @@ #ifndef HAVE_WAITPID -#include "imp.h" #include #include #include -#include "exp.h" - GLOBAL int waitpid(pid, stat_loc, options) int pid, *stat_loc, options; -- cgit 1.4.1