Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
elmindreda committed Aug 13, 2015
1 parent 0dd0c18 commit c5dee8d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Maintained since version 0.3.1.

* duff.c duff.h duffdriver.c dufffile.c duffstring.c duffstring.h duffutil.c:
Changed indent width.
* duffdriver.c (process_path): Decreased nesting depth.

2013-09-13 Camilla Berglund <[email protected]>

Expand Down
48 changes: 24 additions & 24 deletions src/duffdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,31 +390,31 @@ static void process_path(const char* path, int depth)

default:
{
if (!quiet_flag)
if (quiet_flag)
return;

switch (mode)
{
switch (mode)
{
case S_IFLNK:
warning(_("%s is a symbolic link; skipping"), path);
break;
case S_IFIFO:
warning(_("%s is a named pipe; skipping"), path);
break;
case S_IFBLK:
warning(_("%s is a block device; skipping"), path);
break;
case S_IFCHR:
warning(_("%s is a character device; skipping"), path);
break;
case S_IFDIR:
warning(_("%s is a directory; skipping"), path);
break;
case S_IFSOCK:
warning(_("%s is a socket; skipping"), path);
break;
default:
error(_("This cannot happen"));
}
case S_IFLNK:
warning(_("%s is a symbolic link; skipping"), path);
break;
case S_IFIFO:
warning(_("%s is a named pipe; skipping"), path);
break;
case S_IFBLK:
warning(_("%s is a block device; skipping"), path);
break;
case S_IFCHR:
warning(_("%s is a character device; skipping"), path);
break;
case S_IFDIR:
warning(_("%s is a directory; skipping"), path);
break;
case S_IFSOCK:
warning(_("%s is a socket; skipping"), path);
break;
default:
error(_("This cannot happen"));
}
}
}
Expand Down

0 comments on commit c5dee8d

Please sign in to comment.