Re: [PATCH v5 8/8] autofs-5.1.1 - remove unused function elapsed()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 18, 2015 at 5:35 PM, Ian Kent <raven@xxxxxxxxxx> wrote:
> Now that the monotonic clock source is used the elapsed() function
> is no longer used, remove it.
>
> Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
> ---
>  lib/rpc_subs.c |    8 --------
>  1 file changed, 8 deletions(-)

Oh, I think we also need to remove the declaration of elapsed() in
include/rpc_subs.h

>
> diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c
> index 2364744..3d99f56 100644
> --- a/lib/rpc_subs.c
> +++ b/lib/rpc_subs.c
> @@ -1078,14 +1078,6 @@ int rpc_ping(const char *host, long seconds, long micros, unsigned int option)
>         return status;
>  }
>
> -double elapsed(struct timeval start, struct timeval end)
> -{
> -       double t1, t2;
> -       t1 =  (double)start.tv_sec + (double)start.tv_usec/(1000*1000);
> -       t2 =  (double)end.tv_sec + (double)end.tv_usec/(1000*1000);
> -       return t2-t1;
> -}
> -
>  double monotonic_elapsed(struct timespec start, struct timespec end)
>  {
>         double t1, t2;
>
--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux