aboutsummaryrefslogtreecommitdiffstats
path: root/drv_BeckmannEgle.c
diff options
context:
space:
mode:
Diffstat (limited to 'drv_BeckmannEgle.c')
-rw-r--r--drv_BeckmannEgle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drv_BeckmannEgle.c b/drv_BeckmannEgle.c
index 87cdbd5..c486062 100644
--- a/drv_BeckmannEgle.c
+++ b/drv_BeckmannEgle.c
@@ -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,
};