mturk 2005/02/06 02:00:41
Modified: jk/native/common jk_shm.c
Log:
Fix few typos.
Revision Changes Path
1.2 +4 -4 jakarta-tomcat-connectors/jk/native/common/jk_shm.c
Index: jk_shm.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_shm.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jk_shm.c 5 Feb 2005 19:40:19 -0000 1.1
+++ jk_shm.c 6 Feb 2005 10:00:41 -0000 1.2
@@ -144,9 +144,9 @@
/* Clear shared memory */
if (!attached) {
- jk_shm_h_rec *hdr;
+ jk_shm_h_rec_t *hdr;
- memset(shm->base, 0, size);
+ memset(shm->base, 0, shm->size);
hdr = (jk_shm_h_rec_t *)shm->base;
memcpy(hdr->magic, shm_signature, 8);
@@ -173,7 +173,7 @@
void jk_shm_close(jk_shm_t *shm)
{
if (shm) {
- if (shm->base)
+ if (shm->base) {
munmap(shm->base, shm->size);
close(shm->fd);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]