Project

General

Profile

Actions

Bug #3808

closed

pfring: compile warnings

Added by Victor Julien over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
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

Also available in: Atom PDF