Patches provided by Carsten Schoenert: Misspellings, File access

This commit is contained in:
Holger Vogt 2023-12-31 13:51:05 +01:00
parent 88844ba74d
commit ace932e1b9
5 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ c but avoids most of the well-known defects of this type of generator
c by, in effect, generating x[n+k] from x[n] as defined by the
c sequence above, where k is chosen randomly in 1 ... 128 with the
c help of a subsidiary Tauseworth-type generator.
c For the positve integer generator irandm, the less
c For the positive integer generator irandm, the less
c significant digits are more random than is usual for a Lehmer
c generator. The last n<31 digits do not repeat with a period of 2^n.
c This is also true of the unsigned integer generator urandm, but less

View File

@ -54,7 +54,7 @@ static int write_param_info(IFparm **dst, const OsdiDescriptor *descr,
break;
default:
errRtn = "get_osdi_info";
errMsg = tprintf("Unkown OSDI type %d for parameter %s!",
errMsg = tprintf("Unknown OSDI type %d for parameter %s!",
para->flags & PARA_TY_MASK, para->name[0]);
return -1;
}

View File

@ -43,11 +43,11 @@ static int handle_init_info(OsdiInitInfo info, const OsdiDescriptor *descr) {
break;
}
default:
printf("Unkown OSDO init error code %d!\n", err->code);
printf("Unknown OSDO init error code %d!\n", err->code);
}
}
free(info.errors);
errMsg = tprintf("%i errors occurred during initalization", info.num_errors);
errMsg = tprintf("%i errors occurred during initialization", info.num_errors);
return (E_PRIVATE);
}

View File

@ -99,7 +99,7 @@ void cm_d_osc(ARGS)
table[i].ctl = PARAM(cntl_array[i]);
table[i].freq = PARAM(freq_array[i]);
if (table[i].freq <= 0) {
cm_message_printf("Error: frequency %g is not positve, "
cm_message_printf("Error: frequency %g is not positive, "
"value replaced by 1e-16.",
table[i].freq);
table[i].freq = 1.0e-16;

View File

@ -106,7 +106,7 @@ void cm_d_pwm(ARGS)
table[i].ctl = PARAM(cntl_array[i]);
table[i].dc = PARAM(dc_array[i]);
if (table[i].dc <= 0) {
cm_message_printf("Error: duty cycle %g is not positve, "
cm_message_printf("Error: duty cycle %g is not positive, "
"value replaced by 0.01.",
table[i].dc);
table[i].dc = 0.01;