Commit b91deb9d authored by John Johansen's avatar John Johansen

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

Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent af7caa8f
...@@ -60,6 +60,7 @@ ...@@ -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);
......
...@@ -69,7 +69,7 @@ char *aa_split_fqname(char *fqname, char **ns_name) ...@@ -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;
......
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