Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix warnings

  • Loading branch information...
commit b2d270a665a95e6b85a796b4d7d6967bdd61e70d 1 parent 1e32adb
Vitaly _Vi Shukela authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 Makefile
  2. +4 −4 fusefile.c
View
4 Makefile
@@ -1,7 +1,7 @@
all: fusefile
-fusefile:
- gcc `pkg-config fuse --cflags --libs` fusefile.c -o fusefile -g3
+fusefile: fusefile.c Makefile
+ gcc -Wall `pkg-config fuse --cflags --libs` fusefile.c -o fusefile -g3
prefix=/usr/local
View
8 fusefile.c
@@ -24,7 +24,11 @@
#define FUSE_USE_VERSION 26
#define _XOPEN_SOURCE 500
+#define _FILE_OFFSET_BITS 64
+#define _LARGEFILE64_SOURCE
+#include <sys/types.h>
+#include <unistd.h>
#include <fuse.h>
#include <time.h>
#include <stdlib.h>
@@ -211,10 +215,6 @@ int main(int argc, char *argv[])
char* argv2[argc-1+2]; // File name removed, "-o nonempty,direct_io" added
int our_arguments_count=3; /* argv[0], source file and mount point */
- char* source_file;
- char* mountpoint_file;
-
-
st_size=-1;
st_mode=-1;
st_offset=0;
Please sign in to comment.
Something went wrong with that request. Please try again.