]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client/fuse.cc: explicity zero fuse function ptrs
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 2 Feb 2011 17:57:32 +0000 (09:57 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 3 Feb 2011 12:10:31 +0000 (04:10 -0800)
Set unused function pointers to 0 explicitly to please gcc. (They were
already implicitly zeroed because the containing struct was a global.)

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/client/fuse.cc

index 81ddfd681f9e9b6fc122c84f46220e480fbfaf65..960848b198b2963837984ba78fede44ac0eab234 100644 (file)
@@ -252,7 +252,21 @@ const static struct fuse_operations ceph_oper = {
   removexattr: 0,
   opendir: ceph_opendir,
   readdir: ceph_readdir,
-  releasedir: ceph_releasedir  
+  releasedir: ceph_releasedir,
+  fsyncdir : 0,
+  init : 0,
+  destroy : 0,
+  access : 0,
+  create : 0,
+  ftruncate : 0,
+  fgetattr : 0,
+  lock : 0,
+  utimens : 0,
+  bmap : 0,
+  flag_nullpath_ok : 0,
+  flag_reserved : 0,
+  ioctl : 0,
+  poll : 0,
 };