Coverity: NO_EFFECT: CID 594
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 13 Jan 2012 22:24:14 +0000 (17:24 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 13 Jan 2012 22:24:14 +0000 (17:24 -0500)
* lib-src/gnuslib.c (connect_to_unix_server): Use int for sz which
is the proper return type of snprintf.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/gnuslib.c

index e6d3ec8..c15520f 100644 (file)
@@ -247,7 +247,7 @@ static int connect_to_unix_server(void)
 {
        int s;                  /* connected socket descriptor */
        struct sockaddr_un server;      /* for unix connections */
-       size_t sz;
+       int sz;
 
        if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
                perror(progname);