Commit 3463ebca authored by Stephen Smalley's avatar Stephen Smalley
Browse files

Coding style fix for sizeof operator.


commit dcd8167f7722c1f00c71f54af5425434da2d6cbc upstream.

Change-Id: I3373f01811d93348801fa8ae4156ab4edd6f259b
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
parent 6f1b8911
......@@ -296,7 +296,7 @@ static inline struct avc_node *avc_reclaim_node(void)
static inline void avc_clear_avc_entry(struct avc_entry *ae)
{
memset(ae, 0, sizeof *ae);
memset(ae, 0, sizeof(*ae));
}
static inline struct avc_node *avc_claim_node(security_id_t ssid,
......@@ -444,7 +444,7 @@ static int avc_insert(security_id_t ssid, security_id_t tsid,
goto out;
}
memcpy(&node->ae.avd, &ae->avd, sizeof ae->avd);
memcpy(&node->ae.avd, &ae->avd, sizeof(ae->avd));
aeref->ae = &node->ae;
out:
return rc;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment