Actions
Bug #3808
closedpfring: compile warnings
Affected Versions:
Effort:
Difficulty:
Label:
Description
runmode-pfring.c: In function ‘OldParsePfringConfig’: runmode-pfring.c:127:35: warning: passing argument 1 of ‘StringParseUint16’ from incompatible pointer type [-Wincompatible-pointer-types] if (StringParseUint16(&pfconf->threads, 10, 0, threadsstr) < 0) { ^ In file included from runmode-pfring.c:33:0: util-byte.h:294:5: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘int *’ int StringParseUint16(uint16_t *res, int base, uint16_t len, const char *str); ^~~~~~~~~~~~~~~~~ runmode-pfring.c:149:31: warning: passing argument 1 of ‘StringParseUint16’ from incompatible pointer type [-Wincompatible-pointer-types] if (StringParseUint16(&pfconf->cluster_id, 10, 0, (const char *)tmpclusterid) < 0) { ^ In file included from runmode-pfring.c:33:0: util-byte.h:294:5: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘int *’ int StringParseUint16(uint16_t *res, int base, uint16_t len, const char *str); ^~~~~~~~~~~~~~~~~ runmode-pfring.c: In function ‘ParsePfringConfig’: runmode-pfring.c:267:35: warning: passing argument 1 of ‘StringParseUint16’ from incompatible pointer type [-Wincompatible-pointer-types] if (StringParseUint16(&pfconf->threads, 10, 0, (const char *)threadsstr) < 0) { ^ In file included from runmode-pfring.c:33:0: util-byte.h:294:5: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘int *’ int StringParseUint16(uint16_t *res, int base, uint16_t len, const char *str); ^~~~~~~~~~~~~~~~~ runmode-pfring.c:283:31: warning: passing argument 1 of ‘StringParseUint16’ from incompatible pointer type [-Wincompatible-pointer-types] if (StringParseUint16(&pfconf->cluster_id, 10, 0, (const char *)tmpclusterid) < 0) { ^ In file included from runmode-pfring.c:33:0: util-byte.h:294:5: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘int *’ int StringParseUint16(uint16_t *res, int base, uint16_t len, const char *str); ^~~~~~~~~~~~~~~~~ runmode-pfring.c:303:35: warning: passing argument 1 of ‘StringParseUint16’ from incompatible pointer type [-Wincompatible-pointer-types] if (StringParseUint16(&pfconf->cluster_id, 10, 0, (const char *)tmpclusterid) < 0) { ^ In file included from runmode-pfring.c:33:0: util-byte.h:294:5: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘int *’ int StringParseUint16(uint16_t *res, int base, uint16_t len, const char *str);
Actions