From 1179763531558a0018582c6b08ca3f82e8ecba3a Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Sun, 22 Oct 2017 00:15:46 +0100 Subject: [PATCH] redirect: Don't dupe lsi_file_exists Signed-off-by: Ikey Doherty --- src/redirect/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/redirect/main.c b/src/redirect/main.c index 5d2efac..ef905b0 100644 --- a/src/redirect/main.c +++ b/src/redirect/main.c @@ -21,6 +21,7 @@ #include #include +#include "../common/files.h" #include "nica/util.h" #include "redirect.h" @@ -58,12 +59,6 @@ typedef struct LsiRedirectTable { */ static LsiRedirectTable lsi_table = { 0 }; -static inline bool lsi_file_exists(const char *path) -{ - struct stat st = { .st_ino = 0 }; - return (lstat(path, &st) == 0); -} - /** * Determine the basename'd process */