summaryrefslogtreecommitdiff
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r--channels/chan_oss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index ddd559af1..ca26e7922 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -1099,16 +1099,16 @@ static char *console_dial(struct ast_cli_entry *e, int cmd, struct ast_cli_args
if (o->owner) { /* already in a call */
int i;
struct ast_frame f = { AST_FRAME_DTMF, { 0 } };
- const char *s;
+ const char *digits;
if (a->argc == e->args) { /* argument is mandatory here */
ast_cli(a->fd, "Already in a call. You can only dial digits until you hangup.\n");
return CLI_FAILURE;
}
- s = a->argv[e->args];
+ digits = a->argv[e->args];
/* send the string one char at a time */
- for (i = 0; i < strlen(s); i++) {
- f.subclass.integer = s[i];
+ for (i = 0; i < strlen(digits); i++) {
+ f.subclass.integer = digits[i];
ast_queue_frame(o->owner, &f);
}
return CLI_SUCCESS;