summaryrefslogtreecommitdiff
path: root/src/rc/fstabinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-11 20:14:09 +0000
committerRoy Marples <roy@marples.name>2008-02-11 20:14:09 +0000
commit567f8e33f2f7d951237996b6b2dd60189515754d (patch)
tree8a44f7ff0da9e5022bdbb519a08fd5fc975838b3 /src/rc/fstabinfo.c
parent5e470afb5251fdd51188999e23a7d9c2bbfe657c (diff)
downloadopenrc-567f8e33f2f7d951237996b6b2dd60189515754d.tar.gz
openrc-567f8e33f2f7d951237996b6b2dd60189515754d.tar.bz2
openrc-567f8e33f2f7d951237996b6b2dd60189515754d.tar.xz
Just use the extern applet var.
Diffstat (limited to 'src/rc/fstabinfo.c')
-rw-r--r--src/rc/fstabinfo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rc/fstabinfo.c b/src/rc/fstabinfo.c
index 446f9be..98d16fd 100644
--- a/src/rc/fstabinfo.c
+++ b/src/rc/fstabinfo.c
@@ -86,7 +86,7 @@ static struct mntent *getmntfile (const char *file)
}
#endif
-static const char *applet = NULL;
+extern const char *applet;
#include "_usage.h"
#define getoptstring "bmop:t:" getoptstring_COMMON
@@ -128,8 +128,6 @@ int fstabinfo (int argc, char **argv)
char *file;
bool filtered = false;
- applet = basename_c (argv[0]);
-
/* Ensure that we are only quiet when explicitly told to be */
unsetenv ("EINFO_QUIET");