mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-02 16:09:51 -04:00
C25/DBAR: use new func gs1_check_digit() for common GS1 check digit calc
CODE11/CODE39/EXCODE39/CODE93/PZN/CHANNEL/VIN/DBAR/UPCEAN: fuller error messages DATAMATRIX: look_ahead_test debug counts DBAR: consolidate option_2 cols_per_row CMakeLists.txt: restore -fno-var-tracking-assignments for gcc no DEBUG overall: suppress various warnings on various configs testcommon.c: clean-up
This commit is contained in:
parent
33ebcea30c
commit
52c00e59ba
30 changed files with 739 additions and 715 deletions
|
@ -107,7 +107,7 @@ static char *exec(const char *cmd, char *buf, int buf_size, int debug, int index
|
|||
fprintf(stderr, "exec: failed to run '%s'\n", cmd);
|
||||
return NULL;
|
||||
}
|
||||
cnt = fread(buf, 1, buf_size, fp);
|
||||
cnt = (int) fread(buf, 1, buf_size, fp);
|
||||
if (fgetc(fp) != EOF) {
|
||||
fprintf(stderr, "exec: failed to read full stream (%s)\n", cmd);
|
||||
testutil_pclose(fp);
|
||||
|
@ -161,7 +161,7 @@ static int arg_input(char *cmd, const char *filename, const char *input) {
|
|||
fprintf(stderr, "arg_input: failed to open '%s' for writing\n", filename);
|
||||
return 0;
|
||||
}
|
||||
cnt = fwrite(input, 1, strlen(input), fp);
|
||||
cnt = (int) fwrite(input, 1, strlen(input), fp);
|
||||
if (cnt != (int) strlen(input)) {
|
||||
fprintf(stderr, "arg_input: failed to write %d bytes, cnt %d written (%s)\n", (int) strlen(input), cnt, filename);
|
||||
fclose(fp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue