commit 3a44055d3752abfc094ba3fd099feac95b2bd98a
parent 8d1bf0ee4b00c0b9547407a6f9a8add94ef33ba6
Author: qorg11 <qorg@vxempire.xyz>
Date: Wed, 29 Jul 2020 23:22:39 +0200
Merge branch 'master' of gitlab.com:call-cc/k9core into master
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/cat.c b/src/cat.c
@@ -27,10 +27,11 @@ main(int argc, char *argv[])
{
if(argc == 1)
cat(0,NULL);
- else for(int i = 1; i<argc;i++)
- {
+ else
+ for(int i = 1; i<argc;i++)
+ {
cat(1,argv[i]);
- }
+ }
return 0;
}
diff --git a/src/ls.c b/src/ls.c
@@ -23,11 +23,10 @@ main(int argc, char *argv[])
{
if(ent->d_name[0] == '.' && !all)
continue;
- printf("%s ",ent->d_name); /* TODO: sort, and do not display . and .. */
+ printf("%s\n",ent->d_name); /* TODO: sort, and do not display . and .. */
}
}
closedir(dir);
- printf("\n");
return 0;
}
diff --git a/src/touch.c b/src/touch.c
@@ -12,7 +12,7 @@ main(int argc, char *argv[])
return 1;
}
- int fd = creat(argv[1],0644);
+ int fd = creat(argv[1], 0644);
if(fd == -1)
{