From: John Hodge Date: Sat, 10 May 2014 02:43:36 +0000 (+0800) Subject: Usermode/init - Minor cleanup (removal of unneeded temp char) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=433fc48ffc7f0fc337a704e4f2f4f4390de60f70;p=tpg%2Facess2.git Usermode/init - Minor cleanup (removal of unneeded temp char) --- diff --git a/Usermode/Applications/init_src/main.c b/Usermode/Applications/init_src/main.c index 11833a07..31408e62 100644 --- a/Usermode/Applications/init_src/main.c +++ b/Usermode/Applications/init_src/main.c @@ -497,15 +497,13 @@ int SpawnDaemon(tInitProgram *Program) char buffer[101]; size_t len = snprintf(buffer, 100, "[%lli] init spawning ", _SysTimestamp()); _SysWrite(out, buffer, len); - char ch = '\''; for( int i = 0; Program->Command[i]; i ++ ) { - _SysWrite(out, &ch, 1); + _SysWrite(out, "'", 1); _SysWrite(out, Program->Command[i], strlen(Program->Command[i])); - _SysWrite(out, &ch, 1); + _SysWrite(out, "'", 1); } - ch = '\n'; - _SysWrite(out, &ch, 1); + _SysWrite(out, "\n", 1); } return SpawnCommand(in, out, err, Program->Command, NULL);