[Spice-devel] [PATCH 2/3] server/red_worker: make stat_now static
Marc-André Lureau
marcandre.lureau at gmail.com
Sun May 8 15:32:25 PDT 2011
On Sun, May 8, 2011 at 2:27 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
> server/red_worker.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index b8d6a96..08096f8 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -118,7 +118,7 @@ static clockid_t clock_id;
>
> typedef unsigned long stat_time_t;
>
> -inline stat_time_t stat_now()
> +static inline stat_time_t stat_now()
> {
> struct timespec ts;
> clock_gettime(clock_id, &ts);
I would also:
- make it (void)
- remove the inline, the compiler should do it if it's worth
but also ;)
- (eventually rename it to stat_time_now())
- (and some day? move the stat_* definition to stat.c)
> --
> 1.7.5.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
--
Marc-André Lureau
More information about the Spice-devel
mailing list