summaryrefslogtreecommitdiff
path: root/res/res_convert.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
commitfd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch)
tree42d2a87726d196f4db1c68489007520a4c597062 /res/res_convert.c
parent9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff)
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'res/res_convert.c')
-rw-r--r--res/res_convert.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/res/res_convert.c b/res/res_convert.c
index 705e8922d..10a5ed33e 100644
--- a/res/res_convert.c
+++ b/res/res_convert.c
@@ -18,13 +18,13 @@
*/
/*! \file
- *
+ *
* \brief file format conversion CLI command using Asterisk formats and translators
*
* \author redice li <redice_li@yahoo.com>
* \author Russell Bryant <russell@digium.com>
*
- */
+ */
/*** MODULEINFO
<support_level>core</support_level>
@@ -41,7 +41,7 @@
static int split_ext(char *filename, char **name, char **ext)
{
*name = *ext = filename;
-
+
if ((*ext = strrchr(filename, '.'))) {
**ext = '\0';
(*ext)++;
@@ -53,8 +53,8 @@ static int split_ext(char *filename, char **name, char **ext)
return 0;
}
-/*!
- * \brief Convert a file from one format to another
+/*!
+ * \brief Convert a file from one format to another
* \param e CLI entry
* \param cmd command number
* \param a list of cli arguments
@@ -85,10 +85,10 @@ static char *handle_cli_file_convert(struct ast_cli_entry *e, int cmd, struct as
case CLI_GENERATE:
return NULL;
}
-
+
if (a->argc != 4 || ast_strlen_zero(a->argv[2]) || ast_strlen_zero(a->argv[3])) {
ret = CLI_SHOWUSAGE;
- goto fail_out;
+ goto fail_out;
}
file_in = ast_strdupa(a->argv[2]);
@@ -102,7 +102,7 @@ static char *handle_cli_file_convert(struct ast_cli_entry *e, int cmd, struct as
ast_cli(a->fd, "Unable to open input file: %s\n", a->argv[2]);
goto fail_out;
}
-
+
if (split_ext(file_out, &name_out, &ext_out)) {
ast_cli(a->fd, "'%s' is an invalid filename!\n", a->argv[3]);
goto fail_out;
@@ -113,7 +113,7 @@ static char *handle_cli_file_convert(struct ast_cli_entry *e, int cmd, struct as
}
start = ast_tvnow();
-
+
while ((f = ast_readframe(fs_in))) {
if (ast_writestream(fs_out, f)) {
ast_frfree(f);
@@ -134,7 +134,7 @@ fail_out:
ast_filedelete(name_out, ext_out);
}
- if (fs_in)
+ if (fs_in)
ast_closestream(fs_in);
return ret;