summaryrefslogtreecommitdiffstats
path: root/include/env.h
diff options
context:
space:
mode:
authorKarel Zak2012-06-05 15:44:12 +0200
committerKarel Zak2012-06-05 15:44:12 +0200
commit90af3fe39bb843a237e599748db342d4a05482e9 (patch)
tree24778b133c82980c5d3cd55459fbbd3747ebc14e /include/env.h
parentlibmount: trim leading commas from each options string (diff)
downloadkernel-qcow2-util-linux-90af3fe39bb843a237e599748db342d4a05482e9.tar.gz
kernel-qcow2-util-linux-90af3fe39bb843a237e599748db342d4a05482e9.tar.xz
kernel-qcow2-util-linux-90af3fe39bb843a237e599748db342d4a05482e9.zip
inclide/env: innclude c.h, remove _() macro from xsetenv()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/env.h b/include/env.h
index 9c6a3fd17..df692bc68 100644
--- a/include/env.h
+++ b/include/env.h
@@ -1,6 +1,8 @@
#ifndef UTIL_LINUX_ENV_H
#define UTIL_LINUX_ENV_H
+#include "c.h"
+
extern void sanitize_env (void);
extern char *safe_getenv(const char *arg);
@@ -8,7 +10,7 @@ static inline void
xsetenv (char const *name, char const *val, int overwrite)
{
if (setenv (name, val, overwrite) != 0)
- err (EXIT_FAILURE, _("failed to set the %s environment variable"), name);
+ err (EXIT_FAILURE, "failed to set the %s environment variable", name);
}
#endif /* UTIL_LINUX_ENV_H */