From: Julia Lawall Date: Wed, 5 Aug 2009 12:34:55 +0000 (+0200) Subject: security/smack: Use AF_INET for sin_family field X-Git-Tag: v2.6.32-rc1~737^2^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da34d4248bd2013ee64ce51e63ec0ebd1f32b46c;p=pandora-kernel.git security/smack: Use AF_INET for sin_family field Elsewhere the sin_family field holds a value with a name of the form AF_..., so it seems reasonable to do so here as well. Also the values of PF_INET and AF_INET are the same. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ struct sockaddr_in sip; @@ ( sip.sin_family == - PF_INET + AF_INET | sip.sin_family != - PF_INET + AF_INET | sip.sin_family = - PF_INET + AF_INET ) // Signed-off-by: Julia Lawall Acked-by: Casey Schaufler Signed-off-by: James Morris --- Reading git-diff-tree failed