Subject return something in non-void functions
This fixes
libstats_test.c: In function 'stats_container_free':
../include/libstats.h:107: warning: control reaches end of non-void function
libstats_test.c: In function 'stats_container_init':
../include/libstats.h:102: warning: control reaches end of non-void function
Signed-off-by: Robert Schwebel <[EMAIL PROTECTED]>
include/libstats.h | 4 ++++
1 file changed, 4 insertions(+)
Index: include/libstats.h
===================================================================
--- include/libstats.h.orig
+++ include/libstats.h
@@ -99,11 +99,15 @@ int stats_container_init(stats_container
data->size = size;
data->records = (stats_record_t *)malloc(size*sizeof(stats_record_t));
memset(data->records, 0, size*sizeof(stats_record_t));
+
+ return 0;
}
int stats_container_free(stats_container_t *data)
{
free(data->records);
+
+ return 0;
}
float stats_stddev(stats_container_t *data)
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html