aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2001-11-21 10:03:39 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2001-11-21 10:03:39 +0000
commitcc8c975f7757ce89d15aad31df6c8b7086169653 (patch)
tree7e313f7a29871bec3496cd4e48febdcf1216d4b2 /lib/fuse.c
parent0e8702ba48357fd1596bee4648aede7a9b2adc4e (diff)
downloadlibfuse-cc8c975f7757ce89d15aad31df6c8b7086169653.tar.gz
writing modules made more easy
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 4042993..c8bc3e4 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -17,6 +17,8 @@
#define FUSE_MAX_PATH 4096
+#define FUSE_KERNEL_VERSION_ENV "_FUSE_KERNEL_VERSION"
+
static struct node *__get_node(struct fuse *f, fino_t ino)
{
size_t hash = ino % f->ino_table_size;
@@ -891,7 +893,7 @@ struct fuse *fuse_new(int fd, int flags)
struct fuse *f;
struct node *root;
char verstr[128];
- char *realver = getenv("FUSE_KERNEL_VERSION");
+ char *realver = getenv(FUSE_KERNEL_VERSION_ENV);
if(realver != NULL) {
sprintf(verstr, "%i", FUSE_KERNEL_VERSION);