2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00

apparmor: make internal lib fn skipn_spaces available to the rest of apparmor

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2017-05-22 02:47:22 -07:00
parent af7caa8f8d
commit b91deb9db1
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@
extern int apparmor_initialized;
/* fn's in lib */
const char *skipn_spaces(const char *str, size_t n);
char *aa_split_fqname(char *args, char **ns_name);
const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
size_t *ns_len);

View File

@ -69,7 +69,7 @@ char *aa_split_fqname(char *fqname, char **ns_name)
* if all whitespace will return NULL
*/
static const char *skipn_spaces(const char *str, size_t n)
const char *skipn_spaces(const char *str, size_t n)
{
for (; n && isspace(*str); --n)
++str;