aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsbutil/is_env_off.c')
-rw-r--r--libsbutil/is_env_off.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libsbutil/is_env_off.c b/libsbutil/is_env_off.c
deleted file mode 100644
index 3536ee7..0000000
--- a/libsbutil/is_env_off.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * is_env_off.c
- *
- * Util functions.
- *
- * Copyright 1999-2008 Gentoo Foundation
- * Licensed under the GPL-2
- */
-
-#include "headers.h"
-#include "sbutil.h"
-
-bool is_env_off (const char *env)
-{
- if ((NULL != env) && (NULL != getenv(env)) &&
- ((0 == strncasecmp(getenv(env), "0", 1)) ||
- (0 == strncasecmp(getenv(env), "false", 5)) ||
- (0 == strncasecmp(getenv(env), "no", 2))))
- return true;
-
- return false;
-}