summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 18:02:27 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 18:02:27 +0900
commitd726c0ed32cce8582c3c164506723aa8f9600f3a (patch)
treed5190df663dcd3278c48fe24909302e25480a0f9
parentee4ee188eaf12af811cd7e4491d4f74d363a6a16 (diff)
downloadwiimote-d726c0ed32cce8582c3c164506723aa8f9600f3a.tar.gz
wiimote-d726c0ed32cce8582c3c164506723aa8f9600f3a.tar.bz2
Fix undefined symbol error
-rw-r--r--compiz-wiimote.h2
-rw-r--r--wiimote.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/compiz-wiimote.h b/compiz-wiimote.h
index 91323bd..73b02ae 100644
--- a/compiz-wiimote.h
+++ b/compiz-wiimote.h
@@ -366,7 +366,7 @@ typedef struct _WiimoteScreen
GET_WIIMOTE_SCREEN (w->screen, \
GET_WIIMOTE_DISPLAY (w->screen->display)))
-extern int wiimoteDisplayPrivateIndex;
+int wiimoteDisplayPrivateIndex;
cwiid_mesg_callback_t wiimoteCWiiDCallback;
cwiid_err_t err;
CompDisplay *firstDisplay;
diff --git a/wiimote.c b/wiimote.c
index 5db10ac..d97f022 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -274,6 +274,7 @@ wiimoteFiniObject (CompPlugin *p,
static Bool
wiimoteInit (CompPlugin *p)
{
+ fprintf(stderr, " in init\n");
corePrivateIndex = allocateCorePrivateIndex ();
if (corePrivateIndex < 0)
return FALSE;