Skip to content

Commit

Permalink
Fix ISO C90 warnings
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/fuse/perl-llin@93 6e4b0b00-1209-0410-87b2-b275959b5705
  • Loading branch information
dpavlin committed May 29, 2006
1 parent 39a5788 commit 1219c55
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions Fuse.xs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ static inline void create_perl_context() {
}
}
}
# define FUSE_CONTEXT_PRE create_perl_context(); {
# define FUSE_CONTEXT_PRE create_perl_context(); { dSP
# define FUSE_CONTEXT_POST }
# define FUSE_USE_ITHREADS
# else
# error "Sorry, I don't know how to handle ithreads on this architecture."
# endif
#else
# define FUSE_CONTEXT_PRE
# define FUSE_CONTEXT_PRE dSP
# define FUSE_CONTEXT_POST
#endif
#include <fuse.h>
Expand All @@ -42,7 +42,6 @@ SV *_PLfuse_callbacks[N_CALLBACKS];
int _PLfuse_getattr(const char *file, struct stat *result) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("getattr begin: %s\n",file);
ENTER;
SAVETMPS;
Expand Down Expand Up @@ -86,7 +85,6 @@ int _PLfuse_getattr(const char *file, struct stat *result) {
int _PLfuse_readlink(const char *file,char *buf,size_t buflen) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
if(buflen < 1)
return EINVAL;
DEBUGf("readlink begin\n");
Expand Down Expand Up @@ -127,7 +125,6 @@ int _PLfuse_readlink(const char *file,char *buf,size_t buflen) {
int _PLfuse_getdir(const char *file, fuse_dirh_t dirh, fuse_dirfil_t dirfil) {
int prv, rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("getdir begin\n");
ENTER;
SAVETMPS;
Expand Down Expand Up @@ -155,7 +152,6 @@ int _PLfuse_getdir(const char *file, fuse_dirh_t dirh, fuse_dirfil_t dirfil) {
int _PLfuse_mknod (const char *file, mode_t mode, dev_t dev) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("mknod begin\n");
ENTER;
SAVETMPS;
Expand All @@ -181,7 +177,6 @@ int _PLfuse_mknod (const char *file, mode_t mode, dev_t dev) {
int _PLfuse_mkdir (const char *file, mode_t mode) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("mkdir begin\n");
ENTER;
SAVETMPS;
Expand All @@ -207,7 +202,6 @@ int _PLfuse_mkdir (const char *file, mode_t mode) {
int _PLfuse_unlink (const char *file) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("unlink begin\n");
ENTER;
SAVETMPS;
Expand All @@ -231,7 +225,6 @@ int _PLfuse_unlink (const char *file) {
int _PLfuse_rmdir (const char *file) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("rmdir begin\n");
ENTER;
SAVETMPS;
Expand All @@ -255,7 +248,6 @@ int _PLfuse_rmdir (const char *file) {
int _PLfuse_symlink (const char *file, const char *new) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("symlink begin\n");
ENTER;
SAVETMPS;
Expand All @@ -280,7 +272,6 @@ int _PLfuse_symlink (const char *file, const char *new) {
int _PLfuse_rename (const char *file, const char *new) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("rename begin\n");
ENTER;
SAVETMPS;
Expand All @@ -305,7 +296,6 @@ int _PLfuse_rename (const char *file, const char *new) {
int _PLfuse_link (const char *file, const char *new) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("link begin\n");
ENTER;
SAVETMPS;
Expand All @@ -330,7 +320,6 @@ int _PLfuse_link (const char *file, const char *new) {
int _PLfuse_chmod (const char *file, mode_t mode) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("chmod begin\n");
ENTER;
SAVETMPS;
Expand All @@ -355,7 +344,6 @@ int _PLfuse_chmod (const char *file, mode_t mode) {
int _PLfuse_chown (const char *file, uid_t uid, gid_t gid) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("chown begin\n");
ENTER;
SAVETMPS;
Expand All @@ -381,7 +369,6 @@ int _PLfuse_chown (const char *file, uid_t uid, gid_t gid) {
int _PLfuse_truncate (const char *file, off_t off) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("truncate begin\n");
ENTER;
SAVETMPS;
Expand All @@ -406,7 +393,6 @@ int _PLfuse_truncate (const char *file, off_t off) {
int _PLfuse_utime (const char *file, struct utimbuf *uti) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("utime begin\n");
ENTER;
SAVETMPS;
Expand All @@ -433,7 +419,6 @@ int _PLfuse_open (const char *file, struct fuse_file_info *fi) {
int rv;
int flags = fi->flags;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("open begin\n");
ENTER;
SAVETMPS;
Expand All @@ -458,7 +443,6 @@ int _PLfuse_open (const char *file, struct fuse_file_info *fi) {
int _PLfuse_read (const char *file, char *buf, size_t buflen, off_t off, struct fuse_file_info *fi) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("read begin\n");
ENTER;
SAVETMPS;
Expand Down Expand Up @@ -498,7 +482,6 @@ int _PLfuse_read (const char *file, char *buf, size_t buflen, off_t off, struct
int _PLfuse_write (const char *file, const char *buf, size_t buflen, off_t off, struct fuse_file_info *fi) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("write begin\n");
ENTER;
SAVETMPS;
Expand All @@ -524,7 +507,6 @@ int _PLfuse_write (const char *file, const char *buf, size_t buflen, off_t off,
int _PLfuse_statfs (const char *file, struct statvfs *st) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("statfs begin\n");
ENTER;
SAVETMPS;
Expand Down Expand Up @@ -570,7 +552,6 @@ int _PLfuse_statfs (const char *file, struct statvfs *st) {
int _PLfuse_flush (const char *file, struct fuse_file_info *fi) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("flush begin\n");
ENTER;
SAVETMPS;
Expand All @@ -595,7 +576,6 @@ int _PLfuse_release (const char *file, struct fuse_file_info *fi) {
int rv;
int flags = fi->flags;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("release begin\n");
ENTER;
SAVETMPS;
Expand All @@ -621,7 +601,6 @@ int _PLfuse_fsync (const char *file, int datasync, struct fuse_file_info *fi) {
int rv;
int flags = fi->flags;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("fsync begin\n");
ENTER;
SAVETMPS;
Expand All @@ -646,7 +625,6 @@ int _PLfuse_fsync (const char *file, int datasync, struct fuse_file_info *fi) {
int _PLfuse_setxattr (const char *file, const char *name, const char *buf, size_t buflen, int flags) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("setxattr begin\n");
ENTER;
SAVETMPS;
Expand All @@ -673,7 +651,6 @@ int _PLfuse_setxattr (const char *file, const char *name, const char *buf, size_
int _PLfuse_getxattr (const char *file, const char *name, char *buf, size_t buflen) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("getxattr begin\n");
ENTER;
SAVETMPS;
Expand Down Expand Up @@ -717,7 +694,6 @@ int _PLfuse_getxattr (const char *file, const char *name, char *buf, size_t bufl
int _PLfuse_listxattr (const char *file, char *list, size_t size) {
int prv, rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("listxattr begin\n");
ENTER;
SAVETMPS;
Expand Down Expand Up @@ -782,7 +758,6 @@ int _PLfuse_listxattr (const char *file, char *list, size_t size) {
int _PLfuse_removexattr (const char *file, const char *name) {
int rv;
FUSE_CONTEXT_PRE;
dSP;
DEBUGf("removexattr begin\n");
ENTER;
SAVETMPS;
Expand Down

0 comments on commit 1219c55

Please sign in to comment.