gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 114/254: tool_msgs: remove wrong cast


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 114/254: tool_msgs: remove wrong cast
Date: Sat, 17 Jun 2017 16:52:26 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit dc1a1b50557ed0cad427e0b5808a95459443ca41
Author: Marcel Raad <address@hidden>
AuthorDate: Mon May 8 20:23:44 2017 +0200

    tool_msgs: remove wrong cast
    
    Commit 481e0de00a9003b9c5220b120e3fc302d9b0932d changed the variable
    type from int to size_t, so don't cast the result of strlen to int
    anymore.
---
 src/tool_msgs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tool_msgs.c b/src/tool_msgs.c
index 1454903ad..d06708a18 100644
--- a/src/tool_msgs.c
+++ b/src/tool_msgs.c
@@ -38,7 +38,7 @@ static void voutf(struct GlobalConfig *config,
                   const char *fmt,
                   va_list ap)
 {
-  size_t width = (79 - (int)strlen(prefix));
+  size_t width = (79 - strlen(prefix));
   if(!config->mute) {
     size_t len;
     char *ptr;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]