diff options
author | lns <matzeton@googlemail.com> | 2019-12-25 08:17:04 +0100 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2019-12-25 08:17:04 +0100 |
commit | 98522ac1589e3300fb44e4ccc0885d271c3ad690 (patch) | |
tree | 4d666e3195bdf1e3ee81d90a5d8f456a8efa047d | |
parent | bb5865eb200957ec28aed0c6734403bc941a2c71 (diff) |
small improvements
-rw-r--r-- | progressbar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/progressbar.c b/progressbar.c index 38e1da9..43d1e6b 100644 --- a/progressbar.c +++ b/progressbar.c @@ -390,9 +390,9 @@ struct filepath { static void printf_cmd_info(size_t index, struct filepath const * const fp) { if (index) { - printf("[%zu]['/proc/%s/fd/%s'] '%s'\n", index, fp->pid, fp->fd, fp->cmdline); + printf("[%zu]['/proc/%s/fd/%s']['%s']\n", index, fp->pid, fp->fd, fp->cmdline); } else { - printf("['/proc/%s/fd/%s'] '%s'\n", fp->pid, fp->fd, fp->cmdline); + printf("['/proc/%s/fd/%s']['%s']\n", fp->pid, fp->fd, fp->cmdline); } } @@ -553,8 +553,6 @@ int main(int argc, char **argv) } puts(""); - close(finfo.proc_fdinfo_fd); - while (paths) { struct filepath * cur = paths; paths = paths->next; |