From: Christian Brauner Date: Sat, 30 Jun 2018 14:03:31 +0000 (+0200) Subject: tests: remove duplicate file_exists() definition X-Git-Tag: lxc-3.1.0~224^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d47b3b24d391df4fbaf314f8459169a4464d35d;p=thirdparty%2Flxc.git tests: remove duplicate file_exists() definition Signed-off-by: Christian Brauner --- diff --git a/src/tests/attach.c b/src/tests/attach.c index 7a1519b9f..07e641d56 100644 --- a/src/tests/attach.c +++ b/src/tests/attach.c @@ -47,13 +47,6 @@ static const char *lsm_config_key = NULL; static const char *lsm_label = NULL; -bool file_exists(const char *f) -{ - struct stat statbuf; - - return stat(f, &statbuf) == 0; -} - static void test_lsm_detect(void) { if (lsm_enabled()) {