iliaa           Tue Mar 17 23:21:37 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/sysvshm        sysvshm.c 
  Log:
  
  Fixed compiler warning
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sysvshm/sysvshm.c?r1=1.70.2.2.2.5.2.10&r2=1.70.2.2.2.5.2.11&diff_format=u
Index: php-src/ext/sysvshm/sysvshm.c
diff -u php-src/ext/sysvshm/sysvshm.c:1.70.2.2.2.5.2.10 
php-src/ext/sysvshm/sysvshm.c:1.70.2.2.2.5.2.11
--- php-src/ext/sysvshm/sysvshm.c:1.70.2.2.2.5.2.10     Wed Dec 31 11:15:46 2008
+++ php-src/ext/sysvshm/sysvshm.c       Tue Mar 17 23:21:37 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: sysvshm.c,v 1.70.2.2.2.5.2.10 2008/12/31 11:15:46 sebastian Exp $ */
+/* $Id: sysvshm.c,v 1.70.2.2.2.5.2.11 2009/03/17 23:21:37 iliaa Exp $ */
 
 /* This has been built and tested on Linux 2.2.14 
  *
@@ -166,19 +166,19 @@
        /* get the id from a specified key or create new shared memory */
        if ((shm_id = shmget(shm_key, 0, 0)) < 0) {
                if (shm_size < sizeof(sysvshm_chunk_head)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for 
key 0x%x: memorysize too small", shm_key);
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for 
key 0x%lx: memorysize too small", shm_key);
                        efree(shm_list_ptr);
                        RETURN_FALSE;
                }
                if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | 
IPC_EXCL)) < 0) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for 
key 0x%x: %s", shm_key, strerror(errno));
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for 
key 0x%lx: %s", shm_key, strerror(errno));
                        efree(shm_list_ptr);
                        RETURN_FALSE;
                }
        }
 
        if ((shm_ptr = shmat(shm_id, NULL, 0)) == (void *) -1) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 
0x%x: %s", shm_key, strerror(errno));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 
0x%lx: %s", shm_key, strerror(errno));
                efree(shm_list_ptr);
                RETURN_FALSE;
        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to