lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value'

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
michael
2007-02-25 12:27:26 +00:00
parent 51db519d96
commit 3c851dd7e0
51 changed files with 1897 additions and 1890 deletions

View File

@@ -352,7 +352,7 @@ static int drv_BuE_CT_start(const char *section)
/* read version */
drv_generic_serial_write(ESC "?V", 3);
usleep(100000);
if ((len = drv_generic_serial_read(buffer, -sizeof(buffer))) > 0) {
if ((len = drv_generic_serial_read(buffer, -1 * sizeof(buffer))) > 0) {
int v, r, s;
if (sscanf(buffer, "V:%d.%d,%d;", &v, &r, &s) != 3) {
error("%s: error parsing display identification <%*s>", Name, len, buffer);
@@ -728,8 +728,8 @@ int drv_BuE_quit(const int quiet)
DRIVER drv_BeckmannEgle = {
name:Name,
list:drv_BuE_list,
init:drv_BuE_init,
quit:drv_BuE_quit,
.name = Name,
.list = drv_BuE_list,
.init = drv_BuE_init,
.quit = drv_BuE_quit,
};