max_skew_ppm = 0.0;
interval = 10.0;
- sscanf(line, "%d %lf %lf %lf", &max_tries, &max_correction, &max_skew_ppm, &interval);
+ if (sscanf(line, "%d %lf %lf %lf", &max_tries, &max_correction, &max_skew_ppm, &interval))
+ ;
/* Don't allow shorter interval than 0.1 seconds */
if (interval < 0.1)
snprintf(hash_name, sizeof (hash_name), "MD5");
#endif
- sscanf(line, "%u %16s %d", &id, hash_name, &bits);
+ if (sscanf(line, "%u %16s %d", &id, hash_name, &bits))
+ ;
length = CLAMP(10, (bits + 7) / 8, sizeof (key));
if (HSH_GetHashId(hash_name) < 0) {
if (r) {
if (r > 0) {
/* Print the error message from the child */
- fprintf(stderr, "%.1024s\n", message);
+ message[sizeof (message) - 1] = '\0';
+ fprintf(stderr, "%s\n", message);
}
exit(1);
} else
txc.esterror = est_error * 1.0e6;
txc.maxerror = max_error * 1.0e6;
- SYS_Timex_Adjust(&txc, 1);
+ if (SYS_Timex_Adjust(&txc, 1) < 0)
+ ;
}
/* ================================================== */