mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-09-06 22:01:27 +00:00
redirect: Don't dupe lsi_file_exists
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
+1
-6
@@ -21,6 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user