apparmor: rename hname_tail to basename

Rename to the shorter and more familiar shell cmd name

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2017-01-16 00:42:29 -08:00
parent efeee83a70
commit 6e474e3063
3 changed files with 4 additions and 4 deletions

View File

@@ -130,12 +130,12 @@ struct aa_policy {
};
/**
* hname_tail - find the last component of an hname
* basename - find the last component of an hname
* @name: hname to find the base profile name component of (NOT NULL)
*
* Returns: the tail (base profile name) name component of an hname
*/
static inline const char *hname_tail(const char *hname)
static inline const char *basename(const char *hname)
{
char *split;