summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-05-25 10:57:15 +0000
committerRussell Bryant <russell@russellbryant.com>2005-05-25 10:57:15 +0000
commit9644f1dcfe31c89fb5d1003e9932f93ca28bf6d8 (patch)
tree9a917a19f9faf4d2766126637a1244fa001c054a /config.c
parent5d5c4c97c7a699bb8802ba8c53955485de23e36a (diff)
various code cleanups (bug #4353)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 6a86b6ea1..b37566991 100755
--- a/config.c
+++ b/config.c
@@ -486,7 +486,7 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat,
/* #exec </path/to/executable>
We create a tmp file, then we #include it, then we delete it. */
if (do_exec) {
- snprintf(exec_file, sizeof(exec_file), "/var/tmp/exec.%ld.%ld", time(NULL), pthread_self());
+ snprintf(exec_file, sizeof(exec_file), "/var/tmp/exec.%ld.%ld", time(NULL), (long)pthread_self());
snprintf(cmd, sizeof(cmd), "%s > %s 2>&1", cur, exec_file);
ast_safe_system(cmd);
cur = exec_file;