[PATCH v2 6/9] Xext: store the bracket values for idle counters in the private

Jamey Sharp jamey at minilop.net
Thu Mar 15 08:12:20 PDT 2012


A small detail:

On 3/14/12, Peter Hutterer <peter.hutterer at who-t.net> wrote:
>  static void
>  IdleTimeWakeupHandler (pointer pCounter, int rc, pointer LastSelectMask)
>  {
> -    SyncCounter *counter = IdleTimeCounter;
> +    SyncCounter *counter = pCounter;
>...
> @@ -2814,7 +2817,7 @@ IdleTimeWakeupHandler (pointer pCounter, int rc,
> pointer LastSelectMask)
>      if ((greater && XSyncValueGreaterOrEqual (idle, *greater)) ||
>          (less && XSyncValueLessOrEqual (idle, *less)))
>      {
> -	SyncChangeCounter (counter, idle);
> +	SyncChangeCounter ((SyncCounter*)pCounter, idle);
>      }
>  }

You have a properly-typed "counter" in scope now, so you can drop this hunk.

Jamey


More information about the xorg-devel mailing list