summaryrefslogtreecommitdiff
path: root/openwrt/package
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-06-18 13:09:54 +0000
committerNicolas Thill <nico@openwrt.org>2006-06-18 13:09:54 +0000
commit108c394fa05dd8117ccf45efd74974f02e8e956b (patch)
treecddc6175c5367da559de684bbc8cd4b48211ec43 /openwrt/package
parent9a9f6205c4ac50d7240c43004381f9445e9e86c7 (diff)
downloadmtk-20170518-108c394fa05dd8117ccf45efd74974f02e8e956b.zip
mtk-20170518-108c394fa05dd8117ccf45efd74974f02e8e956b.tar.gz
mtk-20170518-108c394fa05dd8117ccf45efd74974f02e8e956b.tar.bz2
suppress warnings.
SVN-Revision: 3983
Diffstat (limited to 'openwrt/package')
-rw-r--r--openwrt/package/diag/src/diag.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openwrt/package/diag/src/diag.c b/openwrt/package/diag/src/diag.c
index 6ad7ff1..4f12a1f 100644
--- a/openwrt/package/diag/src/diag.c
+++ b/openwrt/package/diag/src/diag.c
@@ -99,7 +99,7 @@ void (*set_dmz)(u8 state);
static unsigned int diag = 0;
-static void diag_change()
+static void diag_change(void)
{
set_diag(0xFF); // off
set_dmz(0xFF); // off
@@ -166,11 +166,11 @@ static ctl_table sys_diag[] = {
{ 0 }
};
-static int __init diag_init()
+static int __init diag_init(void)
{
char *buf;
u32 board_type;
- sbh = sb_kattach();
+ sbh = (void *)sb_kattach();
sb_gpiosetcore(sbh);
board_type = sb_boardtype(sbh);
@@ -255,7 +255,7 @@ static int __init diag_init()
return 0;
}
-static void __exit diag_exit()
+static void __exit diag_exit(void)
{
unregister_sysctl_table(diag_sysctl_header);
}