From 98522ac1589e3300fb44e4ccc0885d271c3ad690 Mon Sep 17 00:00:00 2001 From: lns Date: Wed, 25 Dec 2019 08:17:04 +0100 Subject: small improvements --- progressbar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'progressbar.c') 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; -- cgit v1.2.3