summary refs log tree commit diff
path: root/src/portab
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2014-03-17 00:17:02 +0100
committerAlexander Barton <alex@barton.de>2014-03-17 00:17:02 +0100
commit259c314d142abd6f9295047c116235cfdd119563 (patch)
tree660548fba4c2523699efcce105850a928b08411b /src/portab
parent51396f8f1c10506b558ce98aafb80aff4b2a95bd (diff)
downloadngircd-259c314d142abd6f9295047c116235cfdd119563.tar.gz
ngircd-259c314d142abd6f9295047c116235cfdd119563.zip
Remove imp.h and exp.h header files
These include files don't have a function any more, remove them.
Diffstat (limited to 'src/portab')
-rw-r--r--src/portab/Makefile.ng2
-rw-r--r--src/portab/exp.h21
-rw-r--r--src/portab/imp.h21
-rw-r--r--src/portab/portabtest.c3
-rw-r--r--src/portab/strdup.c3
-rw-r--r--src/portab/strlcpy.c4
-rw-r--r--src/portab/strndup.c3
-rw-r--r--src/portab/waitpid.c3
8 files changed, 1 insertions, 59 deletions
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 <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-#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 <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
 
-#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 @@
  * <http://cvs.samba.org/cgi-bin/cvsweb/rsync/lib/compat.c>
  */
 
-#include "imp.h"
 #include <string.h>
 #include <sys/types.h>
 
-#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 <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
 
-#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 <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
 
-#include "exp.h"
-
 GLOBAL int
 waitpid(pid, stat_loc, options)
 int pid, *stat_loc, options;