[BusyBox] [PATCH] little clean up for hdparm.c
Tito
farmatito at tiscali.it
Sun Oct 19 13:54:22 UTC 2003
Hi,
attached is a little clean up for hdparm.c
Please apply.
Thanks in advance and ciao,
Tito
-------------- next part --------------
--- busybox_orig/miscutils/hdparm.c 2003-10-19 14:49:49.000000000 +0100
+++ busybox/miscutils/hdparm.c 2003-10-19 14:50:51.000000000 +0100
@@ -487,7 +487,7 @@
static void on_off (unsigned int value);
-static void if_printf_on_off(unsigned long get_arg,const char *fmt, unsigned long arg)
+static void if_printf_on_off(unsigned long get_arg,const char *fmt, unsigned int arg)
{
if (get_arg)
{
@@ -503,8 +503,8 @@
bb_error_msg(" %s", string);
else
{
- printf(fmt, (unsigned long) argp);
- on_off((unsigned long) argp);
+ printf(fmt, (unsigned int) argp);
+ on_off((unsigned int ) argp);
}
}
static void if_else_printf(unsigned long i, char *fmt1, char *fmt2, ... )
@@ -561,7 +561,7 @@
return p;
}
-unsigned long set_flag(char *p, char max)
+int set_flag(char *p, char max)
{
if (*p >= '0' && *p <= max )
return 1;
More information about the busybox
mailing list