From 8cb17908cde71f29eef843ddc9c737b409fbe894 Mon Sep 17 00:00:00 2001 From: zimoch Date: Mon, 18 May 2015 10:46:32 +0000 Subject: [PATCH] fix signedness warning --- exec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 62f824a..939a02f 100644 --- a/exec.c +++ b/exec.c @@ -3,7 +3,7 @@ * * $Author: zimoch $ * $ID$ -* $Date: 2015/04/10 13:30:29 $ +* $Date: 2015/05/18 10:46:32 $ * * DISCLAIMER: Use at your own risc and so on. No warranty, no refund. */ @@ -36,7 +36,7 @@ static void execFunc (const iocshArgBuf *args) char commandline [256]; int i; int status; - int len; + size_t len; char *p = commandline; char *arg; char special; @@ -66,7 +66,7 @@ static void execFunc (const iocshArgBuf *args) } /* quote words to protect special chars (e.g. spaces) */ - p += sprintf(p, " \"%.*s\"", len, arg); + p += sprintf(p, " \"%.*s\"", (int)len, arg); /* add unquoted special chars | ; & */ if (special) p += sprintf(p, "%c", special);