totalsilence += dspsilence;
}
- if (totalsilence > 0)
+ if (totalsilence > 0) {
*duration -= (totalsilence - 200) / 1000;
+ }
if (*duration < 0) {
*duration = 0;
}
* to trim ANY part of the recording.
*/
if (res > 0 && dspsilence) {
- /* rewind only the trailing silence */
+ /* rewind only the trailing silence */
ast_stream_rewind(others[x], dspsilence - 200);
}
ast_truncstream(others[x]);
case 'Y':
/* Year */
if (tm.tm_year > 99) {
- res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
+ res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
} else if (tm.tm_year < 1) {
/* I'm not going to handle 1900 and prior */
/* We'll just be silent on the year, instead of bombing out. */
break;
case 'd':
case 'e': /* Day of the month */
- /* I'm not sure exactly what the parameters
- * audiofd and ctrlfd to
- * ast_say_number_full_he mean, but it seems
- * safe to pass -1 there.
- *
- * At least in one of the pathes :-(
- */
+ /* I'm not sure exactly what the parameters
+ * audiofd and ctrlfd to
+ * ast_say_number_full_he mean, but it seems
+ * safe to pass -1 there.
+ *
+ * At least in one of the pathes :-(
+ */
res = ast_say_number_full_he(chan, tm.tm_mday, ints, lang, "m", -1, -1);
break;
case 'Y': /* Year */
break;
case 'R':
res = ast_say_date_with_format_it(chan, t, ints, lang, "HM", tzone);
- break;
+ break;
case 'S':
/* Seconds */
if (tm.tm_sec == 0) {
}
}
}
- break;
+ break;
case 'T':
res = ast_say_date_with_format_it(chan, t, ints, lang, "HMS", tzone);
break;
case 'Y':
/* Year */
if (tm.tm_year > 99) {
- res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
+ res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
} else if (tm.tm_year < 1) {
/* I'm not going to handle 1900 and prior */
/* We'll just be silent on the year, instead of bombing out. */
*/
static const char *counted_noun_ending_slavic(int num)
{
- if (num < 0) {
+ if (num < 0) {
num *= -1;
}
num %= 100; /* never pay attention to more than two digits */