diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-21 10:03:39 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-21 10:03:39 +0000 |
commit | cc8c975f7757ce89d15aad31df6c8b7086169653 (patch) | |
tree | 7e313f7a29871bec3496cd4e48febdcf1216d4b2 /lib/fuse.c | |
parent | 0e8702ba48357fd1596bee4648aede7a9b2adc4e (diff) | |
download | libfuse-cc8c975f7757ce89d15aad31df6c8b7086169653.tar.gz |
writing modules made more easy
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |