mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 10:20:42 +01:00
testbench: fix compiler warnings in test tool
This commit is contained in:
parent
e6ee3765d1
commit
ea7d276007
@ -125,7 +125,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
if(edLen != (int) strlen(edBuf)) {
|
||||
if (bAnticipateTruncation == 1) {
|
||||
if (edLen < strlen(edBuf)) {
|
||||
if (edLen < (int) strlen(edBuf)) {
|
||||
printf("extra data length specified %d, but actually is %ld in record %d"
|
||||
" (truncation was anticipated, but payload should have been smaller than data-length, not larger)\n",
|
||||
edLen, (long) strlen(edBuf), i);
|
||||
@ -188,7 +188,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
if(edLen != (int) strlen(edBuf)) {
|
||||
if (bAnticipateTruncation == 1) {
|
||||
if (edLen < strlen(edBuf)) {
|
||||
if (edLen < (int) strlen(edBuf)) {
|
||||
printf("extra data length specified %d, but actually is %ld in record %d"
|
||||
" (truncation was anticipated, but payload should have been smaller than data-length, not larger)\n",
|
||||
edLen, (long) strlen(edBuf), i);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user