Browse Source

- optimized include

- fixed type casts
development
Andreas Romeyke 8 months ago
parent
commit
2e53bd5646
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/ifdrules/check_tagorder.c

+ 1
- 2
src/ifdrules/check_tagorder.c View File

@ -8,7 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
#include <errno.h>
ret_t check_tagorder(ctiff_t * ctif) {
@ -34,7 +33,7 @@ ret_t check_tagorder(ctiff_t * ctif) {
free(ifdentries);
return ret;
}
if ( ct_read( ctif, ifdentries, 12 * count) != 12*count ) {
if (ct_read(ctif, ifdentries, (size_t) (12 * count)) != 12 * count ) {
char array[VALUESTRLEN];
snprintf(array, VALUESTRLEN, "%i bytes, errorcode=%i", 12*count, errno);
ret = set_value_found_ret(&ret, array);


Loading…
Cancel
Save