lkml.org 
[lkml]   [2012]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 04/10] Use __kernel_long_t in struct msgbuf
Date
From: "H.J. Lu" <hjl.tools@gmail.com>

Replace long with __kernel_long_t in struct msgbuf for user space.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
include/linux/msg.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/msg.h b/include/linux/msg.h
index 56abf15..c5d21c1 100644
--- a/include/linux/msg.h
+++ b/include/linux/msg.h
@@ -33,8 +33,8 @@ struct msqid_ds {

/* message buffer for msgsnd and msgrcv calls */
struct msgbuf {
- long mtype; /* type of message */
- char mtext[1]; /* message text */
+ __kernel_long_t mtype; /* type of message */
+ char mtext[1]; /* message text */
};

/* buffer for msgctl calls IPC_INFO, MSG_INFO */
--
1.7.6.5


\
 
 \ /
  Last update: 2012-05-18 00:41    [W:0.202 / U:5.024 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site