[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 6/6] android: fix brctl, avoid bionics strtotimeval (in <time.h>)
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2012-06-10 12:17:13
Message-ID: 201206101417.13810.vda.linux () googlemail ! com
[Download RAW message or body]

On Monday 28 May 2012 23:44, Tias Guns wrote:
> patch from 'duplicate-strtotimeval' by Dan Drown
> http://dan.drown.org/android/src/busybox/
> 
> Signed-off-by: Tias Guns <tias@ulyssis.org>
> ---
>  networking/brctl.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/networking/brctl.c b/networking/brctl.c
> index 19f474f..7289e64 100644
> --- a/networking/brctl.c
> +++ b/networking/brctl.c
> @@ -67,7 +67,7 @@
>  # include <linux/if_bridge.h>
>  
>  /* FIXME: These 4 funcs are not really clean and could be improved */
> -static ALWAYS_INLINE void strtotimeval(struct timeval *tv,
> +static ALWAYS_INLINE void bb_strtotimeval(struct timeval *tv,
>  		const char *time_str)
>  {
>  	double secs;
> @@ -104,7 +104,7 @@ static void jiffies_to_tv(struct timeval *tv, unsigned long jiffies)
>  static unsigned long str_to_jiffies(const char *time_str)
>  {
>  	struct timeval tv;
> -	strtotimeval(&tv, time_str);
> +	bb_strtotimeval(&tv, time_str);
>  	return tv_to_jiffies(&tv);
>  }

Applied, thanks!
-- 
vda

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic