s/msg/shm/ for one variable.

Submitted by:	jin@george.lbl.gov (Jin Guojun[ITG])
This commit is contained in:
Joerg Wunsch 1996-07-18 20:42:48 +00:00
parent d4fb10ff8b
commit 6fd25edc0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17216

View File

@ -24,7 +24,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: ipcs.c,v 1.4 1995/07/12 19:10:17 bde Exp $
* $Id: ipcs.c,v 1.5 1996/05/30 02:18:44 pst Exp $
*/
#include <stdio.h>
@ -321,7 +321,7 @@ main(argc, argv)
struct shmid_ds *xshmids;
kvm_read(kd, symbols[X_SHMSEGS].n_value, &shmsegs, sizeof(shmsegs));
xshmids = malloc(sizeof(struct shmid_ds) * msginfo.msgmni);
xshmids = malloc(sizeof(struct shmid_ds) * shminfo.shmmni);
kvm_read(kd, (u_long) shmsegs, xshmids, sizeof(struct shmid_ds) *
shminfo.shmmni);