From ea7d27600703d663ea3b9072b72de711276512df Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 15 Feb 2016 15:40:53 +0100 Subject: [PATCH] testbench: fix compiler warnings in test tool --- tests/chkseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/chkseq.c b/tests/chkseq.c index a8976b0a3..5cb3f48ca 100644 --- a/tests/chkseq.c +++ b/tests/chkseq.c @@ -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);