summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-20 22:16:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-20 22:16:20 +0000
commitb80aaa9784eada594a76216cdc8c44d17131d3a6 (patch)
tree7003034bcb57f869287c5bb4b5eda1683e29080a
parent2008-05-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadnetwork-demos-b80aaa9784eada594a76216cdc8c44d17131d3a6.tar.bz2
2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* shttpd_ext.c: Fix warning.
-rw-r--r--http/ChangeLog4
-rw-r--r--http/shttpd_ext.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/http/ChangeLog b/http/ChangeLog
index e808706..b1333a7 100644
--- a/http/ChangeLog
+++ b/http/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * shttpd_ext.c: Fix warning.
+
2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile, init.c: Make sure POSIX threading is enabled if using
diff --git a/http/shttpd_ext.c b/http/shttpd_ext.c
index 33c6213..dadc1be 100644
--- a/http/shttpd_ext.c
+++ b/http/shttpd_ext.c
@@ -30,7 +30,10 @@ void example_shttpd_callback(struct shttpd_arg *arg)
/* fprintf( stderr, "RTEMS Request -%s-\n", query ); */
if ( !strcmp( query, "cpuuse_report" ) ) {
- rtems_cpu_usage_report_with_plugin( arg, shttpd_printf );
+ rtems_cpu_usage_report_with_plugin(
+ arg,
+ (rtems_printk_plugin_t) shttpd_printf
+ );
} else if ( !strcmp( query, "cpuuse_reset" ) ) {
rtems_cpu_usage_reset();
shttpd_printf(
@@ -40,7 +43,10 @@ void example_shttpd_callback(struct shttpd_arg *arg)
END_HTML_BODY
);
} else if ( !strcmp( query, "stackuse_report" ) ) {
- rtems_stack_checker_report_usage_with_plugin( arg, shttpd_printf );
+ rtems_stack_checker_report_usage_with_plugin(
+ arg,
+ (rtems_printk_plugin_t) shttpd_printf
+ );
} else {
shttpd_printf(
arg,