]> granicus.if.org Git - liblinear/commitdiff
Add return 0 into print_null in predict.c,
authorguestwalk <guestwalk@16e7d947-dcc2-db11-b54a-0017319806e7>
Fri, 23 Nov 2012 02:48:45 +0000 (02:48 +0000)
committerguestwalk <guestwalk@16e7d947-dcc2-db11-b54a-0017319806e7>
Fri, 23 Nov 2012 02:48:45 +0000 (02:48 +0000)
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

index 48b65d9151ca49b4c6454a164652084978c62bef..c5b3f1d56ee0883a387ab721d0d98aa0e254473f 100644 (file)
--- a/predict.c
+++ b/predict.c
@@ -5,7 +5,7 @@
 #include <errno.h>
 #include "linear.h"
 
-int print_null(const char *s,...) {}
+int print_null(const char *s,...) {return 0;}
 
 static int (*info)(const char *fmt,...) = &printf;