aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit502665ca01755ee372ec247161df158237b60935 (patch)
treee0050256fc93af7ab075286ca9657dea5ed3c58e /package
parent0ea9c205918d7d42e7e2d6c511356d54819819f1 (diff)
downloadupstream-502665ca01755ee372ec247161df158237b60935.tar.gz
upstream-502665ca01755ee372ec247161df158237b60935.tar.bz2
upstream-502665ca01755ee372ec247161df158237b60935.zip
suppress warnings.
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3983 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/diag/src/diag.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/diag/src/diag.c b/package/diag/src/diag.c
index 6ad7ff102f..4f12a1f1e2 100644
--- a/package/diag/src/diag.c
+++ b/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);
}