cvs: pecl(APC_3_0) /apc apc_mmap.c apc_shm.c config.m4
| From: | Rasmus Lerdorf | Date: | Tue, 25 Mar 2008 21:00:22 +0000 |
| Subject: | cvs: pecl(APC_3_0) /apc apc_mmap.c apc_shm.c config.m4 | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-10071@lists.php.net to get a copy of this message | ||
rasmus Tue Mar 25 21:00:22 2008 UTC
Modified files: (Branch: APC_3_0)
/pecl/apc apc_mmap.c apc_shm.c config.m4
Log:
MFH compile warnings
Default valgrind memcheck to be off
http://cvs.php.net/viewvc.cgi/pecl/apc/apc_mmap.c?r1=3.7&r2=3.7.2.1&diff_format=u
Index: pecl/apc/apc_mmap.c
diff -u pecl/apc/apc_mmap.c:3.7 pecl/apc/apc_mmap.c:3.7.2.1
--- pecl/apc/apc_mmap.c:3.7 Thu Dec 20 23:00:51 2007
+++ pecl/apc/apc_mmap.c Tue Mar 25 21:00:22 2008
@@ -25,7 +25,7 @@
*/
-/* $Id: apc_mmap.c,v 3.7 2007/12/20 23:00:51 shire Exp $ */
+/* $Id: apc_mmap.c,v 3.7.2.1 2008/03/25 21:00:22 rasmus Exp $ */
#include "apc.h"
@@ -114,7 +114,7 @@
unlink(file_mask);
}
}
- if((int)shmaddr == -1) {
+ if((long)shmaddr == -1) {
apc_eprint("apc_mmap: mmap failed:");
}
return shmaddr;
http://cvs.php.net/viewvc.cgi/pecl/apc/apc_shm.c?r1=3.11&r2=3.11.2.1&diff_format=u
Index: pecl/apc/apc_shm.c
diff -u pecl/apc/apc_shm.c:3.11 pecl/apc/apc_shm.c:3.11.2.1
--- pecl/apc/apc_shm.c:3.11 Wed May 9 22:15:33 2007
+++ pecl/apc/apc_shm.c Tue Mar 25 21:00:22 2008
@@ -26,7 +26,7 @@
*/
-/* $Id: apc_shm.c,v 3.11 2007/05/09 22:15:33 shire Exp $ */
+/* $Id: apc_shm.c,v 3.11.2.1 2008/03/25 21:00:22 rasmus Exp $ */
#include "apc_shm.h"
#include "apc.h"
@@ -81,7 +81,7 @@
{
void* shmaddr; /* the shared memory address */
- if ((int)(shmaddr = shmat(shmid, 0, 0)) == -1) {
+ if ((long)(shmaddr = shmat(shmid, 0, 0)) == -1) {
apc_eprint("apc_shm_attach: shmat failed:");
}
http://cvs.php.net/viewvc.cgi/pecl/apc/config.m4?r1=3.30.2.1&r2=3.30.2.2&diff_format=u
Index: pecl/apc/config.m4
diff -u pecl/apc/config.m4:3.30.2.1 pecl/apc/config.m4:3.30.2.2
--- pecl/apc/config.m4:3.30.2.1 Tue Mar 25 18:04:53 2008
+++ pecl/apc/config.m4 Tue Mar 25 21:00:22 2008
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 3.30.2.1 2008/03/25 18:04:53 gopalv Exp $
+dnl $Id: config.m4,v 3.30.2.2 2008/03/25 21:00:22 rasmus Exp $
dnl
AC_MSG_CHECKING(whether apc needs to get compiler flags from apxs)
@@ -212,16 +212,16 @@
AC_MSG_CHECKING(whether we should enable valgrind support)
AC_ARG_ENABLE(valgrind-checks,
- [ --disable-valgrind-checks
- Disable valgrind based memory checks],
+ [ --enable-valgrind-checks
+ Enable valgrind based memory checks],
[
PHP_APC_VALGRIND=$enableval
AC_MSG_RESULT($enableval)
- ], [
- PHP_APC_VALGRIND=yes
- AC_MSG_RESULT(yes)
AC_CHECK_HEADER(valgrind/memcheck.h,
[AC_DEFINE([HAVE_VALGRIND_MEMCHECK_H],1, [enable valgrind memchecks])])
+ ], [
+ PHP_APC_VALGRIND=no
+ AC_MSG_RESULT(no)
])