Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b91deb9d authored by John Johansen's avatar John Johansen
Browse files

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

parent af7caa8f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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;