[vlc-commits] config/help: do not print range info if not explicitly set

Filip Roséen git at videolan.org
Fri Oct 21 16:30:58 CEST 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Sun Oct 16 15:33:31 2016 +0200| [f21d0e73213d52e2db46191915c79a1cd66d7446] | committer: Thomas Guillem

config/help: do not print range info if not explicitly set

If the range for an integer is set to the maximum (default), there is
no point in explicitly stating this range in the help.

Following the changes in e908026, config/help.c:print_item must also
be updated to reflect the new default-range.

These changes fixes that.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f21d0e73213d52e2db46191915c79a1cd66d7446
---

 src/config/help.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/help.c b/src/config/help.c
index 9bc44b8..6f043c5 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -434,7 +434,7 @@ static void print_item(const module_t *m, const module_config_t *item,
                             module_gettext(m, item->list_text[i]));
                 }
             }
-            else if (item->min.i != INT_MIN || item->max.i != INT_MAX)
+            else if (item->min.i != INT64_MIN || item->max.i != INT64_MAX )
             {
                 if (asprintf(&typebuf, "%s [%"PRId64" .. %"PRId64"]",
                              type, item->min.i, item->max.i) >= 0)



More information about the vlc-commits mailing list