Updated Changes and fixed a couple indents.
authorDerrik Pates <demon@now.ai>
Thu, 1 Mar 2012 17:28:47 +0000 (10:28 -0700)
committerDerrik Pates <demon@now.ai>
Thu, 1 Mar 2012 17:28:47 +0000 (10:28 -0700)
Changes
Fuse.xs

diff --git a/Changes b/Changes
index 34feac7..c7ac893 100644 (file)
--- a/Changes
+++ b/Changes
@@ -101,3 +101,4 @@ Revision history for Perl extension Fuse.
          or later. Also wrote tests based off fsel.c and fselclient.c
          from FUSE.
        - Fixed a thinko in the platform handling chain in Makefile.PL.
+       - Added handling for sub-second [amc]time stamps.
diff --git a/Fuse.xs b/Fuse.xs
index 3b1e23b..fb012fd 100755 (executable)
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -166,7 +166,7 @@ int _PLfuse_getattr(const char *file, struct stat *result) {
                else
                        rv = -ENOENT;
        } else {
-        double tm;
+               double tm;
                result->st_blocks = POPi;
                result->st_blksize = POPi;
                /* Do a little gymnastics to transform the fractional part into nsec */
@@ -1003,7 +1003,7 @@ int _PLfuse_readdir(const char *file, void *dirh, fuse_fill_dir_t dirfil,
                                        if (SvROK(*svp) &&
                                                        SvTYPE(av2 = (AV *)SvRV(*svp)) == SVt_PVAV &&
                                                        av_len(av2) == 12) {
-                        double tm;
+                                               double tm;
                                                st.st_dev     = SvIV(*(av_fetch(av2,  0, FALSE)));
                                                st.st_ino     = SvIV(*(av_fetch(av2,  1, FALSE)));
                                                st.st_mode    = SvIV(*(av_fetch(av2,  2, FALSE)));
@@ -1284,7 +1284,7 @@ int _PLfuse_fgetattr(const char *file, struct stat *result,
                else
                        rv = -ENOENT;
        } else {
-        double tm;
+               double tm;
                result->st_blocks = POPi;
                result->st_blksize = POPi;
                /* Do a little gymnastics to transform the fractional part into nsec */