mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Formatting
This commit is contained in:
parent
b32fcc7a8e
commit
373cca0bf6
6 changed files with 18 additions and 14 deletions
|
@ -1644,7 +1644,7 @@ int expand_string(const wcstring &input, std::vector<completion_t> &output, expa
|
|||
{
|
||||
wcstring next = in->at(i).completion;
|
||||
|
||||
if (! (EXPAND_SKIP_HOME_DIRECTORIES & flags))
|
||||
if (!(EXPAND_SKIP_HOME_DIRECTORIES & flags))
|
||||
expand_home_directory(next);
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue