diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-03-17 23:21:37 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-03-17 23:21:37 +0000 |
commit | 76939503c8ae281cf19d1b436ba6791c827312b8 (patch) | |
tree | 8fc9b3598bb3618e7b7b22d3e8250f962bf07ad8 /ext/sysvshm | |
parent | cd9908c69c5154cec514258b4e7f65e31fa37a61 (diff) | |
download | php-git-76939503c8ae281cf19d1b436ba6791c827312b8.tar.gz |
Fixed compiler warning
Diffstat (limited to 'ext/sysvshm')
-rw-r--r-- | ext/sysvshm/sysvshm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c index 3d1b28fb3f..8e91dab956 100644 --- a/ext/sysvshm/sysvshm.c +++ b/ext/sysvshm/sysvshm.c @@ -166,19 +166,19 @@ PHP_FUNCTION(shm_attach) /* 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; } |