fix indentation & typo

This commit is contained in:
marschap
2006-06-20 17:21:27 +00:00
parent 6a1a98ccba
commit 0fcedaa546
2 changed files with 24 additions and 24 deletions
+3 -3
View File
@@ -134,12 +134,12 @@ serialVFD_init (Driver *drvthis)
/* Read config file */
p->use_parallel = drvthis->config_get_bool( drvthis->name, "use_parallel", 0, 0 );
if (p->use_parallel){
if (p->use_parallel) {
p->port = drvthis->config_get_int( drvthis->name, "port", 0, LPTPORT );
}
else {
/* Which device should be used */
strncpy(p->device, drvthis->config_get_string (drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(p->device));
strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(p->device));
p->device[sizeof(p->device)-1] = '\0';
report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device);
@@ -216,7 +216,7 @@ serialVFD_init (Driver *drvthis)
// report (RPT_ERR, "%s: Port: %X\n", __FUNCTION__, p->port, strerror (errno));
// Do connection type specific io-port init
if (Port_Function[p->use_parallel].init_fkt (drvthis)==-1) {
if (Port_Function[p->use_parallel].init_fkt (drvthis) == -1) {
report(RPT_ERR, "%s: unable to initialize io-port.", drvthis->name);
return -1;
}
+4 -4
View File
@@ -67,7 +67,7 @@ serialVFD_load_NEC_FIPC (Driver *drvthis)
int tmp, w;
if (p->customchars == -83)
p->customchars=1; // number of customchaaracters the display provides
p->customchars=1; // number of custom characters the display provides
p->vbar_cc_offset=5; // character offset of the bars
p->hbar_cc_offset=12; // character offset of the bars
@@ -142,7 +142,7 @@ serialVFD_load_KD (Driver *drvthis)
int tmp, w;
if (p->customchars == -83)
p->customchars=31; // number of customchaaracters the display provides
p->customchars=31; // number of custom characters the display provides
p->vbar_cc_offset=0; // character offset of the bars
p->hbar_cc_offset=0; // character offset of the bars
@@ -217,7 +217,7 @@ serialVFD_load_Noritake (Driver *drvthis)
int tmp, w;
if (p->customchars == -83)
p->customchars=16; // number of customchaaracters the display provides
p->customchars=16; // number of custom characters the display provides
p->vbar_cc_offset=0; // character offset of the bars
p->hbar_cc_offset=0; // character offset of the bars
@@ -268,7 +268,7 @@ serialVFD_load_Futaba (Driver *drvthis)
int tmp, w;
if (p->customchars == -83)
p->customchars=3; // number of customchaaracters the display provides
p->customchars=3; // number of custom characters the display provides
p->vbar_cc_offset=0x30; // character offset of the bars
p->hbar_cc_offset=0x30; // character offset of the bars