X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_ivshmem.c;h=bafd48790d24a2b3deae93c60311a7941a1f3492;hb=e8ed6c78177fbbafa326d9efc590a51705848200;hp=227bba929af35fc53d23ae91eb5d9ba45dd94686;hpb=e9199e82fcd210a64d0c34ebcab78d714dc4b453;p=dpdk.git diff --git a/app/test/test_ivshmem.c b/app/test/test_ivshmem.c index 227bba929a..bafd48790d 100644 --- a/app/test/test_ivshmem.c +++ b/app/test/test_ivshmem.c @@ -84,7 +84,8 @@ get_current_prefix(char * prefix, int size) /* copy string all the way from second char up to start of _config */ rte_snprintf(prefix, size, "%.*s", - strnlen(buf, sizeof(buf)) - sizeof("_config"), &buf[1]); + (int)(strnlen(buf, sizeof(buf)) - sizeof("_config")), + &buf[1]); return prefix; }