Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix warnings

  • Loading branch information...
commit b2d270a665a95e6b85a796b4d7d6967bdd61e70d 1 parent 1e32adb
Vitaly _Vi Shukela authored

Showing 2 changed files with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +2 2 Makefile
  2. +4 4 fusefile.c
4 Makefile
... ... @@ -1,7 +1,7 @@
1 1 all: fusefile
2 2
3   -fusefile:
4   - gcc `pkg-config fuse --cflags --libs` fusefile.c -o fusefile -g3
  3 +fusefile: fusefile.c Makefile
  4 + gcc -Wall `pkg-config fuse --cflags --libs` fusefile.c -o fusefile -g3
5 5
6 6 prefix=/usr/local
7 7
8 fusefile.c
@@ -24,7 +24,11 @@
24 24
25 25 #define FUSE_USE_VERSION 26
26 26 #define _XOPEN_SOURCE 500
  27 +#define _FILE_OFFSET_BITS 64
  28 +#define _LARGEFILE64_SOURCE
27 29
  30 +#include <sys/types.h>
  31 +#include <unistd.h>
28 32 #include <fuse.h>
29 33 #include <time.h>
30 34 #include <stdlib.h>
@@ -211,10 +215,6 @@ int main(int argc, char *argv[])
211 215 char* argv2[argc-1+2]; // File name removed, "-o nonempty,direct_io" added
212 216 int our_arguments_count=3; /* argv[0], source file and mount point */
213 217
214   - char* source_file;
215   - char* mountpoint_file;
216   -
217   -
218 218 st_size=-1;
219 219 st_mode=-1;
220 220 st_offset=0;

0 comments on commit b2d270a

Please sign in to comment.
Something went wrong with that request. Please try again.