From c0bee7c9ad54b357bcac6dafa565ff1eeac76d93 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Mon, 8 Aug 2011 19:03:33 -0400 Subject: track: Remove duplicate event count constants. --- src/icon.c | 10 +++++----- src/track.h | 5 ----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/icon.c b/src/icon.c index 0de7025..7df3d84 100644 --- a/src/icon.c +++ b/src/icon.c @@ -28,16 +28,16 @@ #include "sclient.h" #include "icon.h" -static unsigned int events[NUM_EVENTS]; -static unsigned char global_events[NUM_EVENTS]; +static unsigned int events[LINPICKER_NUM_EVENTS]; +static unsigned char global_events[LINPICKER_NUM_EVENTS]; -static IDirectFBSurface *icons[NUM_EVENTS]; -static unsigned char icon_data[NUM_EVENTS][ICON_WIDTH * ICON_HEIGHT]; +static IDirectFBSurface *icons[LINPICKER_NUM_EVENTS]; +static unsigned char icon_data[LINPICKER_NUM_EVENTS][ICON_WIDTH * ICON_HEIGHT]; int icon_set(struct display *d, unsigned icon_id, int set) { - if (icon_id >= CLIENT_EVENTS) + if (icon_id >= LINPICKER_CLIENT_EVENTS) return -1; /* XXX check the client's permission to set the event */ diff --git a/src/track.h b/src/track.h index 76d4d84..3c598f9 100644 --- a/src/track.h +++ b/src/track.h @@ -61,11 +61,6 @@ #define LINPICKER_CLIENT_EVENTS 2 #define LINPICKER_NUM_EVENTS 4 -/* Event counts */ -#define CLIENT_EVENTS 2 -#define SERVER_EVENTS 2 -#define NUM_EVENTS (CLIENT_EVENTS + SERVER_EVENTS) - struct lin_message { uint32_t type; -- cgit v1.2.3