Formatting

This commit is contained in:
ridiculousfish 2013-01-12 12:55:23 -08:00
parent b32fcc7a8e
commit 373cca0bf6
6 changed files with 18 additions and 14 deletions

View File

@ -382,7 +382,8 @@ static int test_fork_helper(void *unused)
for (i=0; i < 1000; i++)
{
//delete [](new char[4 * 1024 * 1024]);
for (int j=0; j < 1024; j++) {
for (int j=0; j < 1024; j++)
{
strerror(j);
}
}
@ -421,8 +422,10 @@ static void test_fork(void)
{
/* Child */
//new char[4 * 1024 * 1024];
for (size_t i=0; i < 1024 * 16; i++) {
for (int j=0; j < 256; j++) {
for (size_t i=0; i < 1024 * 16; i++)
{
for (int j=0; j < 256; j++)
{
strerror(j);
}
}

View File

@ -330,7 +330,8 @@ void safe_perror(const char *message)
char buff[384];
buff[0] = '\0';
if (message) {
if (message)
{
safe_append(buff, message, sizeof buff);
safe_append(buff, ": ", sizeof buff);
}