Skip to content

Commit 2604a83

Browse files
InterLinked1kharwell
authored andcommitted
asterisk.c: Fix incompatibility warnings for remote console.
A previous review fixing ASTERISK_22246 and ASTERISK_26582 got a couple of the options mixed up as to whether or not they are compatible with the remote console. This fixes those to the best of my knowledge. ASTERISK-30097 #close Change-Id: Id54166991aa79f04fb02699cc499bedda854253b
1 parent d9ce2a6 commit 2604a83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main/asterisk.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -3725,13 +3725,18 @@ int main(int argc, char *argv[])
37253725
switch (c) {
37263726
/* okay to run with remote console */
37273727
case 'B': /* force black background */
3728+
case 'C': /* set config path */
37283729
case 'd': /* debug */
37293730
case 'h': /* help */
37303731
case 'I': /* obsolete timing option: warning already thrown if used */
37313732
case 'L': /* max load */
37323733
case 'M': /* max calls */
3734+
case 'm': /* mute */
3735+
/*! \note The q option is never used anywhere, only defined */
3736+
case 'q': /* quiet */
37333737
case 'R': /* reconnect */
37343738
case 'r': /* remote */
3739+
/*! \note Can ONLY be used with remote console */
37353740
case 's': /* set socket path */
37363741
case 'V': /* version */
37373742
case 'v': /* verbose */
@@ -3741,18 +3746,15 @@ int main(int argc, char *argv[])
37413746
break;
37423747
/* can only be run when Asterisk is starting */
37433748
case 'X': /* enables #exec for asterisk.conf only. */
3744-
case 'C': /* set config path */
37453749
case 'c': /* foreground console */
37463750
case 'e': /* minimum memory free */
37473751
case 'F': /* always fork */
37483752
case 'f': /* no fork */
37493753
case 'G': /* run group */
37503754
case 'g': /* dump core */
37513755
case 'i': /* init keys */
3752-
case 'm': /* mute */
37533756
case 'n': /* no color */
37543757
case 'p': /* high priority */
3755-
case 'q': /* quiet */
37563758
case 'T': /* timestamp */
37573759
case 't': /* cache record files */
37583760
case 'U': /* run user */

0 commit comments

Comments
 (0)