summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-01-03 01:59:27 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-01-03 01:59:27 +0000
commit77ecc4a46a7901410c0406c40ba602eaa4470496 (patch)
tree5ee0cd4838aa46eac11e1ed819580d3b4ed9b29b /main
parentb7f3b780314f33fc5371234126669779e7f6429b (diff)
Compatibility fix for OpenBSD
Report and fix by: mvanbaak (Closes issue #11669) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/asterisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 3e1ecad43..5d995c9a7 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -2894,13 +2894,13 @@ int main(int argc, char *argv[])
for (fd = 0; fd < 100; fd++)
close(fd);
- execlp("astcanary", "astcanary", canary_filename, NULL);
+ execlp("astcanary", "astcanary", canary_filename, (char *)NULL);
/* If not found, try the same path as used to execute asterisk */
ast_copy_string(canary_binary, argv[0], sizeof(canary_binary));
if ((lastslash = strrchr(canary_binary, '/'))) {
ast_copy_string(lastslash + 1, "astcanary", sizeof(canary_binary) + canary_binary - (lastslash + 1));
- execl(canary_binary, "astcanary", canary_filename, NULL);
+ execl(canary_binary, "astcanary", canary_filename, (char *)NULL);
}
/* Should never happen */