aboutsummaryrefslogtreecommitdiffstats
path: root/drv_WincorNixdorf.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
commit3c851dd7e04640567ad5a738c43727bb40e9103e (patch)
treed6d80e104d74d26d5d8a67391958e8e362bf5633 /drv_WincorNixdorf.c
parent51db519d969ceb3fb82effb49126314ca1d917b0 (diff)
downloadlcd4linux-3c851dd7e04640567ad5a738c43727bb40e9103e.tar.gz
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
Diffstat (limited to 'drv_WincorNixdorf.c')
-rw-r--r--drv_WincorNixdorf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drv_WincorNixdorf.c b/drv_WincorNixdorf.c
index 6c5976e..b016dc9 100644
--- a/drv_WincorNixdorf.c
+++ b/drv_WincorNixdorf.c
@@ -140,7 +140,7 @@ static int drv_WN_start(const char *section, const int quiet)
drv_generic_serial_write(ESC "[0c", 4);
usleep(100 * 1000);
- if ((len = drv_generic_serial_read(buffer, -sizeof(buffer))) > 0) {
+ if ((len = drv_generic_serial_read(buffer, -1 * sizeof(buffer))) > 0) {
info("%s: waiting 15 seconds for selftest", Name);
drv_generic_serial_write(buffer, len);
sleep(15);
@@ -269,8 +269,8 @@ int drv_WN_quit(const int quiet)
DRIVER drv_WincorNixdorf = {
- name:Name,
- list:drv_WN_list,
- init:drv_WN_init,
- quit:drv_WN_quit,
+ .name = Name,
+ .list = drv_WN_list,
+ .init = drv_WN_init,
+ .quit = drv_WN_quit,
};