aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/lsof.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/lsof.c')
-rw-r--r--toys/pending/lsof.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/toys/pending/lsof.c b/toys/pending/lsof.c
index 18013f77..0a9fc9cd 100644
--- a/toys/pending/lsof.c
+++ b/toys/pending/lsof.c
@@ -121,14 +121,6 @@ static void fill_flags(struct file_info *fi)
fclose(fp);
}
-static char *chomp(char *s)
-{
- char *p = strrchr(s, '\n');
-
- if (p) *p = 0;
- return s;
-}
-
static int scan_proc_net_file(char *path, int family, char type,
void (*fn)(char *, int, char, struct file_info *, long),
struct file_info *fi, long sought_inode)