From 3654ca81e0aa3116c24d849336560cc96ff73f11 Mon Sep 17 00:00:00 2001 From: bwalle Date: Tue, 7 Oct 2008 19:32:42 +0000 Subject: Replace write to external variable usb_debug by calling usb_set_debug(). This fixes build on openSUSE Factory. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@899 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_BWCT.c | 3 +-- drv_IRLCD.c | 3 +-- drv_LCD2USB.c | 3 +-- drv_Trefon.c | 4 +--- drv_USBLCD.c | 4 +--- drv_picoLCD.c | 3 +-- drv_picoLCDGraphic.c | 3 +-- 7 files changed, 7 insertions(+), 16 deletions(-) diff --git a/drv_BWCT.c b/drv_BWCT.c index 4f1ba85..418333c 100644 --- a/drv_BWCT.c +++ b/drv_BWCT.c @@ -72,7 +72,6 @@ static char Name[] = "BWCT"; static usb_dev_handle *lcd; static int interface; -extern int usb_debug; extern int got_signal; @@ -89,7 +88,7 @@ static int drv_BW_open(void) info("%s: scanning USB for BWCT LCD...", Name); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); diff --git a/drv_IRLCD.c b/drv_IRLCD.c index 1bf49c9..3f610fb 100644 --- a/drv_IRLCD.c +++ b/drv_IRLCD.c @@ -84,7 +84,6 @@ static char *device_id = NULL, *bus_id = NULL; static usb_dev_handle *lcd; -extern int usb_debug; extern int got_signal; /****************************************/ @@ -106,7 +105,7 @@ static int drv_IRLCD_open(char *bus_id, char *device_id) if (device_id != NULL) info("%s: scanning for device id: %s", Name, device_id); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); diff --git a/drv_LCD2USB.c b/drv_LCD2USB.c index 40360a3..7377d7f 100644 --- a/drv_LCD2USB.c +++ b/drv_LCD2USB.c @@ -98,7 +98,6 @@ static char *device_id = NULL, *bus_id = NULL; static usb_dev_handle *lcd; static int controllers = 0; -extern int usb_debug; extern int got_signal; /****************************************/ @@ -120,7 +119,7 @@ static int drv_L2U_open(char *bus_id, char *device_id) if (device_id != NULL) info("%s: scanning for device id: %s", Name, device_id); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); diff --git a/drv_Trefon.c b/drv_Trefon.c index 6ff1e59..743b681 100644 --- a/drv_Trefon.c +++ b/drv_Trefon.c @@ -72,8 +72,6 @@ static char Name[] = "TREFON"; static usb_dev_handle *lcd; static int interface; -extern int usb_debug; - /****************************************/ /*** hardware dependant functions ***/ @@ -88,7 +86,7 @@ static int drv_TF_open(void) info("%s: scanning USB for TREFON LCD...", Name); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); diff --git a/drv_USBLCD.c b/drv_USBLCD.c index 3387ebb..70dc7b1 100644 --- a/drv_USBLCD.c +++ b/drv_USBLCD.c @@ -86,8 +86,6 @@ static char *BufPtr; static usb_dev_handle *lcd; static int interface; -extern int usb_debug; - #endif @@ -107,7 +105,7 @@ static int drv_UL_open(void) info("%s: scanning for USBLCD...", Name); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); diff --git a/drv_picoLCD.c b/drv_picoLCD.c index c567518..b52a814 100644 --- a/drv_picoLCD.c +++ b/drv_picoLCD.c @@ -75,7 +75,6 @@ static char *Buffer; static char *BufPtr; static usb_dev_handle *lcd; -extern int usb_debug; @@ -97,7 +96,7 @@ static int drv_pL_open(void) info("%s: scanning for picoLCD...", Name); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); diff --git a/drv_picoLCDGraphic.c b/drv_picoLCDGraphic.c index 6a46d92..ec54c4a 100644 --- a/drv_picoLCDGraphic.c +++ b/drv_picoLCDGraphic.c @@ -98,7 +98,6 @@ static char *Buffer; static char *BufPtr; static usb_dev_handle *lcd; -extern int usb_debug; @@ -120,7 +119,7 @@ static int drv_pLG_open(void) info("%s: scanning for picoLCD 256x64...", Name); - usb_debug = 0; + usb_set_debug(0); usb_init(); usb_find_busses(); -- cgit v1.2.3