static bool
remove_parents (char *dir)
{
- char *slash;
bool ok = true;
strip_trailing_slashes (dir);
while (true)
{
- slash = strrchr (dir, '/');
+ char *slash = strrchr (dir, '/');
if (slash == nullptr)
break;
/* Remove any characters after the slash, skipping any extra
int
main (int argc, char **argv)
{
- bool ok = true;
- int optc;
-
initialize_main (&argc, &argv);
set_program_name (argv[0]);
setlocale (LC_ALL, "");
remove_empty_parents = false;
+ int optc;
while ((optc = getopt_long (argc, argv, "pv", longopts, nullptr)) != -1)
{
switch (optc)
usage (EXIT_FAILURE);
}
+ bool ok = true;
for (; optind < argc; ++optind)
{
char *dir = argv[optind];