mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +08:00
Formatting
This commit is contained in:
parent
b32fcc7a8e
commit
373cca0bf6
|
@ -382,7 +382,8 @@ static int test_fork_helper(void *unused)
|
||||||
for (i=0; i < 1000; i++)
|
for (i=0; i < 1000; i++)
|
||||||
{
|
{
|
||||||
//delete [](new char[4 * 1024 * 1024]);
|
//delete [](new char[4 * 1024 * 1024]);
|
||||||
for (int j=0; j < 1024; j++) {
|
for (int j=0; j < 1024; j++)
|
||||||
|
{
|
||||||
strerror(j);
|
strerror(j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -421,8 +422,10 @@ static void test_fork(void)
|
||||||
{
|
{
|
||||||
/* Child */
|
/* Child */
|
||||||
//new char[4 * 1024 * 1024];
|
//new char[4 * 1024 * 1024];
|
||||||
for (size_t i=0; i < 1024 * 16; i++) {
|
for (size_t i=0; i < 1024 * 16; i++)
|
||||||
for (int j=0; j < 256; j++) {
|
{
|
||||||
|
for (int j=0; j < 256; j++)
|
||||||
|
{
|
||||||
strerror(j);
|
strerror(j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -330,7 +330,8 @@ void safe_perror(const char *message)
|
||||||
char buff[384];
|
char buff[384];
|
||||||
buff[0] = '\0';
|
buff[0] = '\0';
|
||||||
|
|
||||||
if (message) {
|
if (message)
|
||||||
|
{
|
||||||
safe_append(buff, message, sizeof buff);
|
safe_append(buff, message, sizeof buff);
|
||||||
safe_append(buff, ": ", sizeof buff);
|
safe_append(buff, ": ", sizeof buff);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user