Set a definitive FUSE ABI before including fuse.h, to avoid situations

where different operating ssystems default to different levels.
This commit is contained in:
agc 2008-02-07 07:21:15 +00:00
parent 4f2a32a138
commit 5ca5718e92
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#define FUSE_USE_VERSION 26
#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
@ -173,7 +175,7 @@ virtdir_del(virtdir_t *tp, const char *name, size_t size)
if ((ep = virtdir_find(tp, name, size)) == NULL) {
return 0;
}
i = (int)(ep - tp->v) / sizeof(tp->v[0]);
i = (int)(ep - tp->v);
for (tp->c -= 1 ; i < tp->c ; i++) {
tp->v[i] = tp->v[i + 1];
}