fix pointer arithmetic
This commit is contained in:
parent
06680ddb2d
commit
85c0b91ee4
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: msgbuf,v 1.1 2000/06/08 14:45:24 jhawk Exp $
|
||||
# $NetBSD: msgbuf,v 1.2 2001/01/11 05:31:02 deberg Exp $
|
||||
#
|
||||
# Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -36,9 +36,9 @@
|
|||
#
|
||||
|
||||
define msgbuf
|
||||
set $bufx=*(long*)(msgbufp+1*sizeof(long))
|
||||
set $bufr=*(long*)(msgbufp+2*sizeof(long))
|
||||
set $bufs=*(long*)(msgbufp+3*sizeof(long))
|
||||
set $bufx=*(long*)((char *)msgbufp+1*sizeof(long))
|
||||
set $bufr=*(long*)((char *)msgbufp+2*sizeof(long))
|
||||
set $bufs=*(long*)((char *)msgbufp+3*sizeof(long))
|
||||
|
||||
printf "msgbufp %#x: bufx %d bufr %d bufs %d\n", msgbufp, $bufx, $bufr, $bufs
|
||||
|
||||
|
|
Loading…
Reference in New Issue