commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r811603 - /commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c
Date Sat, 05 Sep 2009 08:26:31 GMT
Author: mturk
Date: Sat Sep  5 08:26:31 2009
New Revision: 811603

URL: http://svn.apache.org/viewvc?rev=811603&view=rev
Log:
Fix typo. Use correct shm descriptor

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c?rev=811603&r1=811602&r2=811603&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c Sat Sep  5 08:26:31 2009
@@ -448,7 +448,6 @@
 {
     int rc = 0;
     struct shmid_ds shmbuf;
-    int shmid;
     acr_shm_t *m = (acr_shm_t *)ACR_IOH_FDATA(shm);
 
     if (ACR_IOH_FTYPE(shm) != ACR_DT_SHM) {
@@ -462,7 +461,7 @@
     shmbuf.shm_perm.uid  = uid;
     shmbuf.shm_perm.gid  = gid;
     shmbuf.shm_perm.mode = ACR_UnixPermsToMode(perms);
-    if (shmctl(shmid, IPC_SET, &shmbuf) == -1) {
+    if (shmctl(m->shmid, IPC_SET, &shmbuf) == -1) {
         rc = ACR_GET_OS_ERROR();
         goto finally;
     }



Mime
View raw message