aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 20:04:58 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 20:04:58 +0000
commit883346d64a852193fb4119d4399aa0f5a54d8ae8 (patch)
treec012d8f76915d410cf7446b1efc51e3c2e3f5e95 /cdr
parent4948a0f37cad4e682bdd7860e0c2f01c6cb38ef7 (diff)
Start untangling header inclusion in a way that does not affect
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_adaptive_odbc.c4
-rw-r--r--cdr/cdr_csv.c6
-rw-r--r--cdr/cdr_custom.c6
-rw-r--r--cdr/cdr_manager.c3
-rw-r--r--cdr/cdr_odbc.c6
-rw-r--r--cdr/cdr_pgsql.c5
-rw-r--r--cdr/cdr_radius.c5
-rw-r--r--cdr/cdr_sqlite.c5
-rw-r--r--cdr/cdr_sqlite3_custom.c5
-rw-r--r--cdr/cdr_tds.c5
10 files changed, 0 insertions, 50 deletions
diff --git a/cdr/cdr_adaptive_odbc.c b/cdr/cdr_adaptive_odbc.c
index 129ae1682..b5b83cd02 100644
--- a/cdr/cdr_adaptive_odbc.c
+++ b/cdr/cdr_adaptive_odbc.c
@@ -33,10 +33,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include <sql.h>
diff --git a/cdr/cdr_csv.c b/cdr/cdr_csv.c
index 1a0fcaa30..2db2221b0 100644
--- a/cdr/cdr_csv.c
+++ b/cdr/cdr_csv.c
@@ -32,13 +32,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
#include <errno.h>
-
-#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include "asterisk/config.h"
diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c
index fe65abd8c..d84746eb5 100644
--- a/cdr/cdr_custom.c
+++ b/cdr/cdr_custom.c
@@ -34,13 +34,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
#include <errno.h>
-
-#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include "asterisk/channel.h"
diff --git a/cdr/cdr_manager.c b/cdr/cdr_manager.c
index 062718039..e204337d5 100644
--- a/cdr/cdr_manager.c
+++ b/cdr/cdr_manager.c
@@ -29,9 +29,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <strings.h>
-#include <unistd.h>
#include <time.h>
#include "asterisk/channel.h"
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c
index 1223347b3..effa61512 100644
--- a/cdr/cdr_odbc.c
+++ b/cdr/cdr_odbc.c
@@ -37,12 +37,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-
-#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include "asterisk/config.h"
diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c
index ac43e96f8..0750a2dab 100644
--- a/cdr/cdr_pgsql.c
+++ b/cdr/cdr_pgsql.c
@@ -41,11 +41,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include <libpq-fe.h>
diff --git a/cdr/cdr_radius.c b/cdr/cdr_radius.c
index 207e24762..cc7709016 100644
--- a/cdr/cdr_radius.c
+++ b/cdr/cdr_radius.c
@@ -34,13 +34,8 @@
ASTERISK_FILE_VERSION(__FILE__, "$Rev$")
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include <errno.h>
-#include <unistd.h>
#include <time.h>
-#include <sys/types.h>
#include <radiusclient-ng.h>
#include "asterisk/channel.h"
diff --git a/cdr/cdr_sqlite.c b/cdr/cdr_sqlite.c
index 2c526a60c..b08ce164d 100644
--- a/cdr/cdr_sqlite.c
+++ b/cdr/cdr_sqlite.c
@@ -42,11 +42,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
#include <sqlite.h>
#include "asterisk/channel.h"
diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c
index a3ca00a4e..8f87620ed 100644
--- a/cdr/cdr_sqlite3_custom.c
+++ b/cdr/cdr_sqlite3_custom.c
@@ -40,13 +40,8 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include <errno.h>
-#include <unistd.h>
#include <time.h>
-#include <sys/types.h>
#include <sqlite3.h>
#include "asterisk/channel.h"
diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c
index 4acd5359e..64faef59c 100644
--- a/cdr/cdr_tds.c
+++ b/cdr/cdr_tds.c
@@ -63,11 +63,6 @@ CREATE TABLE [dbo].[cdr] (
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <time.h>
#include <math.h>