summaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/services.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2011-04-20 16:21:28 +0200
committerEric Paris <eparis@redhat.com>2011-04-25 16:19:02 +0200
commit6b697323a78bed254ee372f71b1a6a2901bb4b7a (patch)
treeef1282bd99f549074253b33deeb6436809566ad4 /security/selinux/ss/services.c
parentSELinux: silence build warning when !CONFIG_BUG (diff)
downloadlinux-6b697323a78bed254ee372f71b1a6a2901bb4b7a.tar.xz
linux-6b697323a78bed254ee372f71b1a6a2901bb4b7a.zip
SELinux: security_read_policy should take a size_t not ssize_t
The len should be an size_t but is a ssize_t. Easy enough fix to silence build warnings. We have no need for signed-ness. Signed-off-by: Eric Paris <eparis@redhat.com> Reviewed-by: James Morris <jmorris@namei.org>
Diffstat (limited to '')
-rw-r--r--security/selinux/ss/services.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index f3f5dca81006..211c0ada594c 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -3189,7 +3189,7 @@ out:
* @len: length of data in bytes
*
*/
-int security_read_policy(void **data, ssize_t *len)
+int security_read_policy(void **data, size_t *len)
{
int rc;
struct policy_file fp;