summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-11 07:37:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-11 07:37:07 +0000
commit019e50f3bbb77bd217e9f65d4ed7888320e70782 (patch)
treeb3172387ce79b013b806b0efb421eb8824ae8458
parent125eb54bac94b96ea61447e9a56da4436c891baa (diff)
downloads6-rc-019e50f3bbb77bd217e9f65d4ed7888320e70782.tar.xz
Variable scoping, sigh.
-rw-r--r--src/s6-rc/s6-rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c
index 4baa5c9..65516df 100644
--- a/src/s6-rc/s6-rc.c
+++ b/src/s6-rc/s6-rc.c
@@ -389,12 +389,12 @@ int main (int argc, char const *const *argv)
fdcompiled = open_readb(dbfn) ;
if (!s6rc_db_read_sizes(fdcompiled, &dbblob))
strerr_diefu3sys(111, "read ", dbfn, "/n") ;
+ n = dbblob.nshort + dbblob.nlong ;
/* Allocate enough stack for the db */
{
- unsigned int n = dbblob.nshort + dbblob.nlong ;
s6rc_service_t serviceblob[n] ;
char *argvblob[dbblob.nargvs] ;
uint32 depsblob[dbblob.ndeps << 1] ;