aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_phone.c2
-rw-r--r--main/manager.c2
-rw-r--r--utils/smsq.c4
3 files changed, 5 insertions, 3 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index 5ac54694d..1cba39d0b 100644
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -807,7 +807,7 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame)
we have to pad it to 24 bytes still. */
if (frame->datalen == 4) {
if (p->silencesupression) {
- memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
+ (void) memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
memcpy(tmpbuf, frame->data.ptr, 4);
expected = 24;
res = phone_write_buf(p, tmpbuf, expected, maxfr, 0);
diff --git a/main/manager.c b/main/manager.c
index 39e652054..b4c91e050 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1813,7 +1813,7 @@ static int action_getvar(struct mansession *s, const struct message *m)
if (varname[strlen(varname) - 1] == ')') {
if (!c) {
- c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/%p", SENTINEL);
+ c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/manager");
if (c) {
ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
ast_channel_free(c);
diff --git a/utils/smsq.c b/utils/smsq.c
index d24845a54..fa71d7639 100644
--- a/utils/smsq.c
+++ b/utils/smsq.c
@@ -399,7 +399,9 @@ static void rxqcheck (char *dir, char *queue, char *process)
setenv ("ud16", tmp, 1);
}
/* run the command */
- system (process);
+ if (system (process) == -1) {
+ fprintf(stderr, "Failed to fork process '%s'\n", process);
+ }
}
closedir (d);
}