From 347607e403e8b43e097ee409a908aa0d186e09f5 Mon Sep 17 00:00:00 2001 From: guestwalk Date: Fri, 23 Nov 2012 02:48:45 +0000 Subject: [PATCH] Add return 0 into print_null in predict.c, because it is used to replace printf for the "-q" option and printf will return the number of characters it printed. In train we do not need this because the two "info" are different. --- predict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/predict.c b/predict.c index 48b65d9..c5b3f1d 100644 --- a/predict.c +++ b/predict.c @@ -5,7 +5,7 @@ #include #include "linear.h" -int print_null(const char *s,...) {} +int print_null(const char *s,...) {return 0;} static int (*info)(const char *fmt,...) = &printf; -- 2.50.1