diff --git a/ffprobe.c b/ffprobe.c
index fdcdf70273b6929bcf047b88888df2ac506bde0e..7da77eda2c0ac23a384292f5c02b5d7e3ef3cf4c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -364,12 +364,13 @@ static int opt_help(const char *opt, const char *arg)
     return 0;
 }
 
-static void opt_pretty(void)
+static int opt_pretty(const char *opt, const char *arg)
 {
     show_value_unit              = 1;
     use_value_prefix             = 1;
     use_byte_value_binary_prefix = 1;
     use_value_sexagesimal_format = 1;
+    return 0;
 }
 
 static const OptionDef options[] = {