summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org>2016-12-08 20:38:17 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-12-08 20:38:17 (GMT)
commit1904ca1fce4510167b41d6e9de956b77a115f01f (patch) (side-by-side diff)
treec669ee5857b79994a44519e7631af6b7336cfea2 /src/main.c
parent703d16cc05ef4c0d5aaad86a87de9f7d2a5575ff (diff)
downloadmailfromd-1904ca1fce4510167b41d6e9de956b77a115f01f.tar.gz
mailfromd-1904ca1fce4510167b41d6e9de956b77a115f01f.tar.bz2
Ensure proper type conversion when coding immediate values.
* src/prog.h (mf_c_cast): New define. (code_put, code_immediate): New macros. * src/prog.c (code_immediate): Rename to code_immediat_stkval. (code_put): Rename to code_put_stkval. * src/drivers.c: Use typed calls to code_immediate and code_put * src/gram.y: Likewise. * src/main.c: Allocate mu_log_tag.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a03a2da..8d53659 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1263,7 +1263,7 @@ main(int argc, char **argv)
/* Set default logging */
mu_set_program_name(argv[0]);
- mu_log_tag = (char*)mu_program_name;
+ mu_log_tag = mu_strdup(mu_program_name)x;
mu_log_facility = DEFAULT_LOG_FACILITY;
mu_stdstream_setup(MU_STDSTREAM_RESET_NONE);
mf_srvcfg_log_setup(stderr_is_closed ? "syslog" : "stderr");

Return to:

Send suggestions and report system problems to the System administrator.