2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

parser - Fix const char warnings

This patch addresses a bunch of the compiler string conversion warnings
that were introduced with the C++-ification patch.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: Tyler Hicks <tyhicks@canonical.com>
This commit is contained in:
Steve Beattie
2013-10-01 10:59:04 -07:00
parent f85bf5fa68
commit cf57476d6b
11 changed files with 61 additions and 60 deletions

View File

@@ -73,9 +73,9 @@ static char *stripblanks(char *s);
/* default base directory is /etc/subdomain.d, it can be overriden
with the -b option. */
char *basedir;
static char *default_basedir = "/etc/apparmor.d";
static char *old_basedir = "/etc/subdomain.d";
const char *basedir;
static const char *default_basedir = "/etc/apparmor.d";
static const char *old_basedir = "/etc/subdomain.d";
/* set up basedir so that it can be overridden/used later. */
@@ -130,7 +130,7 @@ void set_base_dir(char *dir)
}
/* Add a directory to the search path. */
int add_search_dir(char *dir)
int add_search_dir(const char *dir)
{
char *t;
if (npath >= MAX_PATH) {