summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-25 22:22:51 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-25 22:22:51 +0000
commit3bf28f9d7fa99bc41f7be5a48c4aa33f3a61d4b9 (patch)
tree3817f46a3b3f14fc6022349dc4cf0f081db80bfe /cmdutils.c
parent454403ba55683b95b385c3931ea0fe8fdd71d874 (diff)
downloadffmpeg-3bf28f9d7fa99bc41f7be5a48c4aa33f3a61d4b9.tar.gz
Factorize initial "printf(" and ");" in show_license().
Originally committed as revision 18950 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 167d15a71c..e7070b77ce 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -307,14 +307,12 @@ void show_version(void) {
void show_license(void)
{
-#if CONFIG_NONFREE
printf(
+#if CONFIG_NONFREE
"This version of %s has nonfree parts compiled in.\n"
"Therefore it is not legally redistributable.\n",
program_name
- );
#elif CONFIG_GPL
- printf(
"%s is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"
"the Free Software Foundation; either version 2 of the License, or\n"
@@ -329,9 +327,7 @@ void show_license(void)
"along with %s; if not, write to the Free Software\n"
"Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n",
program_name, program_name, program_name
- );
#else
- printf(
"%s is free software; you can redistribute it and/or\n"
"modify it under the terms of the GNU Lesser General Public\n"
"License as published by the Free Software Foundation; either\n"
@@ -346,8 +342,8 @@ void show_license(void)
"License along with %s; if not, write to the Free Software\n"
"Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n",
program_name, program_name, program_name
- );
#endif
+ );
}
void show_formats(void)