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; extern int apparmor_initialized;
/* fn's in lib */ /* fn's in lib */
const char *skipn_spaces(const char *str, size_t n);
char *aa_split_fqname(char *args, char **ns_name); char *aa_split_fqname(char *args, char **ns_name);
const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
size_t *ns_len); 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 * 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) for (; n && isspace(*str); --n)
++str; ++str;