commit caf27eab05b07fdd04ee621cbf0041783bad2f6b
parent 80e3b5c5e0a1ed5d127c6b25a36a8dbb930bfa08
Author: Mohamed Aslan <maslan@sce.carleton.ca>
Date: Sat, 4 Oct 2014 07:02:22 -0600
minor cosmetic in cmd-ls
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd-ls.c b/cmd-ls.c
@@ -30,13 +30,13 @@ void
ls(struct session *s, struct dir* d, const char *prefix, int is_recursive)
{
char *nextprefix = NULL;
- struct dirent *ent;
struct dir *child;
+ struct dirent *ent;
if (d == NULL)
return;
ent = d->children;
- while(ent != NULL) {
+ while (ent != NULL) {
if (S_ISDIR(ent->mode)) {
printf("%s%s/\n", prefix, ent->name);
if (is_recursive) {