projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
503c232
)
fix scanf
author
Christian Grothoff
<christian@grothoff.org>
Wed, 23 Jun 2010 14:23:25 +0000
(14:23 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 23 Jun 2010 14:23:25 +0000
(14:23 +0000)
src/util/service.c
patch
|
blob
|
history
diff --git
a/src/util/service.c
b/src/util/service.c
index b45a736ae596769ede63d7a27c078df55b5725f5..44d72f37649708fec944b57a59c495964c5c8dba 100644
(file)
--- a/
src/util/service.c
+++ b/
src/util/service.c
@@
-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));