Permalink
Browse files

minor changes to improve compatibility with Freetz

  • Loading branch information...
Russ Ross
Russ Ross committed May 3, 2010
1 parent fa91e56 commit 2fec9f190c9328144f40d80455688e4b18f529c0
Showing with 4 additions and 2 deletions.
  1. +1 −0 common.cpp
  2. +2 −1 fileinfo.cpp
  3. +1 −1 s3fs.cpp
View
@@ -6,6 +6,7 @@
#include <string.h>
#include <time.h>
#include <fcntl.h>
+#include <unistd.h>
#include "common.h"
View
@@ -1,6 +1,7 @@
#include <string>
#include <time.h>
#include <fcntl.h>
+#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -30,7 +31,7 @@ void Fileinfo::set(std::string path, unsigned uid, unsigned gid,
}
void Fileinfo::toStat(struct stat *info) {
- bzero(info, sizeof(struct stat));
+ memset(info, 0, sizeof(struct stat));
info->st_nlink = 1;
info->st_uid = uid;
info->st_gid = gid;
View
@@ -947,7 +947,7 @@ int my_fuse_opt_proc(void *data, const char *arg,
}
int main(int argc, char *argv[]) {
- bzero(&s3fs_oper, sizeof(s3fs_oper));
+ memset(&s3fs_oper, 0, sizeof(s3fs_oper));
struct fuse_args custom_args = FUSE_ARGS_INIT(argc, argv);
fuse_opt_parse(&custom_args, NULL, NULL, my_fuse_opt_proc);

0 comments on commit 2fec9f1

Please sign in to comment.