fix scanf
authorChristian Grothoff <christian@grothoff.org>
Wed, 23 Jun 2010 14:23:25 +0000 (14:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 23 Jun 2010 14:23:25 +0000 (14:23 +0000)
src/util/service.c

index b45a736ae596769ede63d7a27c078df55b5725f5..44d72f37649708fec944b57a59c495964c5c8dba 100644 (file)
@@ -1154,10 +1154,10 @@ setup_service (struct GNUNET_SERVICE_Context *sctx)
 #ifndef MINGW
   errno = 0;
   if ( (NULL != (lpid = getenv ("LISTEN_PID"))) &&
-       (1 == sscanf ("%u", lpid, &pid)) &&
+       (1 == sscanf (lpid, "%u", &pid)) &&
        (getpid () == (pid_t) pid) &&
        (NULL != (nfds = getenv ("LISTEN_FDS"))) &&
-       (1 == sscanf ("%u", nfds, &cnt)) &&
+       (1 == sscanf (nfds, "%u", &cnt)) &&
        (cnt > 0) )
     {
       sctx->lsocks = GNUNET_malloc (sizeof(struct GNUNET_NETWORK_Handle*) * (cnt+1));