| |
[cvs] bogofilter/src bogoQDBMupgrade.c, 1.6, 1.7 bogoconfig.c, 1.236,
1.237 bogoreader.c, 1.66, 1.67 bogotune.c, 1.230,
1.231 bogoutil.c, 1.232, 1.233 datastore_db.c, 1.223,
1.224 datastore_db_trad.c, 1.16, 1.17 datastore_db_trans.c,
1.39, 1.40 datastore_sqlite.c, 1.47, 1.48 db_lock.c, 1.16,
1.17 error.c, 1.14, 1.15 find_home.c, 1.5,
1.6 find_home.test.c, 1.6, 1.7 format.c, 1.47, 1.48 panicenv.c,
1.1, 1.2 passthrough.c, 1.37, 1.38 sighandler.c, 1.5,
1.6 system.c, 1.16, 1.17 From: David Relson <relson@us...> - 2006-05-29 14:28
|
Update of /cvsroot/bogofilter/bogofilter/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10410/src
Modified Files:
bogoQDBMupgrade.c bogoconfig.c bogoreader.c bogotune.c
bogoutil.c datastore_db.c datastore_db_trad.c
datastore_db_trans.c datastore_sqlite.c db_lock.c error.c
find_home.c find_home.test.c format.c panicenv.c passthrough.c
sighandler.c system.c
Log Message:
Move unistd.h references to system.h and remove unneeded includes of stdio.h
Index: datastore_db_trad.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_db_trad.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- datastore_db_trad.c 29 Jun 2005 10:11:16 -0000 1.16
+++ datastore_db_trad.c 29 May 2006 14:28:00 -0000 1.17
@@ -17,7 +17,6 @@
#include "common.h"
#include <errno.h>
-#include <unistd.h>
#include <db.h>
Index: bogoutil.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogoutil.c,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -d -r1.232 -r1.233
--- bogoutil.c 29 Apr 2006 21:11:58 -0000 1.232
+++ bogoutil.c 29 May 2006 14:28:00 -0000 1.233
@@ -18,7 +18,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
-#include <unistd.h>
#include "getopt.h"
Index: datastore_sqlite.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_sqlite.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- datastore_sqlite.c 22 Jan 2006 03:28:26 -0000 1.47
+++ datastore_sqlite.c 29 May 2006 14:28:00 -0000 1.48
@@ -12,7 +12,6 @@
#include "common.h"
#include <errno.h>
-#include <unistd.h> /* for getpid() */
#include <sqlite3.h>
#include "datastore_db.h"
Index: system.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/system.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- system.c 7 Aug 2004 12:31:29 -0000 1.16
+++ system.c 29 May 2006 14:28:00 -0000 1.17
@@ -30,8 +30,6 @@
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
-/* some broken systems define it in unistd.h instead */
-#include <unistd.h>
/** Checks if \a path is absolute. */
bool bf_abspath(const char *path /** path to check for absoluteness */)
Index: find_home.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/find_home.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- find_home.c 5 Feb 2004 12:48:16 -0000 1.5
+++ find_home.c 29 May 2006 14:28:00 -0000 1.6
@@ -18,13 +18,11 @@
#include "system.h"
#include <pwd.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
-#include <unistd.h> /* for geteuid() */
#endif
#include "find_home.h"
Index: sighandler.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/sighandler.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- sighandler.c 4 Jun 2005 13:00:55 -0000 1.5
+++ sighandler.c 29 May 2006 14:28:00 -0000 1.6
@@ -13,7 +13,6 @@
#include "common.h"
#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
Index: panicenv.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/panicenv.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- panicenv.c 8 Jun 2005 11:48:10 -0000 1.1
+++ panicenv.c 29 May 2006 14:28:00 -0000 1.2
@@ -5,7 +5,6 @@
* GNU General Public License v2 */
#include <db.h>
-#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Index: bogotune.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -d -r1.230 -r1.231
--- bogotune.c 29 Apr 2006 21:11:58 -0000 1.230
+++ bogotune.c 29 May 2006 14:28:00 -0000 1.231
@@ -49,7 +49,6 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#include "bogotune.h"
Index: datastore_db.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_db.c,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -d -r1.223 -r1.224
--- datastore_db.c 7 Feb 2006 01:16:56 -0000 1.223
+++ datastore_db.c 29 May 2006 14:28:00 -0000 1.224
@@ -34,7 +34,6 @@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
-#include <unistd.h> /* for SEEK_SET for SunOS 4.1.x */
#include <sys/resource.h>
#include <assert.h>
Index: format.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/format.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- format.c 4 Sep 2005 14:49:43 -0000 1.47
+++ format.c 29 May 2006 14:28:00 -0000 1.48
@@ -16,7 +16,6 @@
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
-#include <unistd.h>
#ifdef NEEDTRIO
#include "trio.h"
Index: datastore_db_trans.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_db_trans.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- datastore_db_trans.c 4 Sep 2005 14:49:43 -0000 1.39
+++ datastore_db_trans.c 29 May 2006 14:28:00 -0000 1.40
@@ -19,7 +19,6 @@
#include <assert.h>
#include <error.h>
#include <errno.h>
-#include <unistd.h>
#include <db.h>
Index: db_lock.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/db_lock.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- db_lock.c 5 Aug 2005 19:33:45 -0000 1.16
+++ db_lock.c 29 May 2006 14:28:00 -0000 1.17
@@ -28,7 +28,6 @@
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
-#include <unistd.h>
#include "db_lock.h"
#include "debug.h"
Index: error.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/error.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- error.c 19 May 2005 11:46:49 -0000 1.14
+++ error.c 29 May 2006 14:28:00 -0000 1.15
@@ -15,7 +15,6 @@
#include <stdarg.h>
#include <ctype.h>
#include <syslog.h>
-#include <unistd.h>
#include "error.h"
Index: bogoreader.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogoreader.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- bogoreader.c 4 Sep 2005 14:49:43 -0000 1.66
+++ bogoreader.c 29 May 2006 14:28:00 -0000 1.67
@@ -28,7 +28,6 @@
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
-#include <stdio.h>
#include "bogoreader.h"
#include "error.h"
Index: passthrough.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/passthrough.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- passthrough.c 7 Feb 2006 01:05:39 -0000 1.37
+++ passthrough.c 29 May 2006 14:28:00 -0000 1.38
@@ -16,7 +16,6 @@
#include <syslog.h>
#ifdef HAVE_UNISTD_H
-#include <unistd.h> /* for unlink() */
#endif
#include "passthrough.h"
Index: bogoconfig.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogoconfig.c,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -d -r1.236 -r1.237
--- bogoconfig.c 29 Apr 2006 21:11:58 -0000 1.236
+++ bogoconfig.c 29 May 2006 14:28:00 -0000 1.237
@@ -36,8 +36,6 @@
#include "common.h"
#include <ctype.h>
-#include <unistd.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
Index: bogoQDBMupgrade.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogoQDBMupgrade.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- bogoQDBMupgrade.c 19 Nov 2004 00:44:21 -0000 1.6
+++ bogoQDBMupgrade.c 29 May 2006 14:28:00 -0000 1.7
@@ -24,7 +24,6 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <unistd.h>
#include <depot.h>
#include <cabin.h>
Index: find_home.test.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/find_home.test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- find_home.test.c 29 Mar 2005 03:04:39 -0000 1.6
+++ find_home.test.c 29 May 2006 14:28:00 -0000 1.7
@@ -15,11 +15,11 @@
/* $Id$ */
+#include "common.h"
+
#include <ctype.h>
#include <stdlib.h>
-#include <stdio.h>
-#include "common.h"
#include "find_home.h"
enum mode { current = 42, by_user, tilde };
|
|