summaryrefslogtreecommitdiff
path: root/extra/config/confdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/config/confdata.c')
-rw-r--r--extra/config/confdata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/config/confdata.c b/extra/config/confdata.c
index 56aff3c03..9ecf11032 100644
--- a/extra/config/confdata.c
+++ b/extra/config/confdata.c
@@ -23,10 +23,10 @@ const char *conf_confnames[] = {
NULL,
};
-static char *conf_expand_value(const char *in)
+static char *conf_expand_value(const signed char *in)
{
struct symbol *sym;
- const char *src;
+ const signed char *src;
static char res_value[SYMBOL_MAXLENGTH];
char *dst, name[SYMBOL_MAXLENGTH];
@@ -287,7 +287,7 @@ int conf_write(const char *name)
} else
basename = conf_def_filename;
- sprintf(newname, "%s.tmpconfig.%d", dirname, getpid());
+ sprintf(newname, "%s.tmpconfig.%d", dirname, (int)getpid());
out = fopen(newname, "w");
if (!out)
return 1;