Fix debug mode compilation on 64-bit boxes. - susmb - mounting of SMB/CIFS shares via FUSE
 (HTM) git clone git://git.codemadness.org/susmb
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a189d444526ddcb91d622efc2b1c46d5e3cbcfb2
 (DIR) parent 2103a2c22ace1ecc2258b2159f303a057983588e
 (HTM) Author: Geoff Johnstone <qwerty@acm.org>
       Date:   Mon,  4 Feb 2013 18:59:17 +0000
       
       Fix debug mode compilation on 64-bit boxes.
       
       Diffstat:
         M usmb_dir.c                          |      11 ++++++-----
         M usmb_file.c                         |       8 ++++----
       
       2 files changed, 10 insertions(+), 9 deletions(-)
       ---
 (DIR) diff --git a/usmb_dir.c b/usmb_dir.c
       @@ -165,8 +165,8 @@ int usmb_setxattr (const char *path, const char *name, const char *value,
          if (NULL == url)
            return -ENOMEM;
        
       -  DEBUG (fprintf (stderr, "setxattr (%s, %s, %p, %u, %x)\n",
       -                  path, url, value, size, flags));
       +  DEBUG (fprintf (stderr, "setxattr (%s, %s, %p, %llu, %x)\n",
       +                  path, url, value, (unsigned long long)size, flags));
          int ret = smbc_getFunctionSetxattr (ctx) (ctx, url, name,
                                                    value, size, flags) ? -errno : 0;
          free (url);
       @@ -180,8 +180,8 @@ int usmb_getxattr (const char *path, const char *name, char *value, size_t size)
          if (NULL == url)
            return -ENOMEM;
        
       -  DEBUG (fprintf (stderr, "getxattr (%s, %s, %p, %u)\n",
       -                  path, url, value, size));
       +  DEBUG (fprintf (stderr, "getxattr (%s, %s, %p, %llu)\n",
       +                  path, url, value, (unsigned long long)size));
          int ret = smbc_getFunctionGetxattr (ctx) (ctx, url, name,
                                                    value, size) ?  -errno : 0;
          free (url);
       @@ -195,7 +195,8 @@ int usmb_listxattr (const char *path, char *list, size_t size)
          if (NULL == url)
            return -ENOMEM;
        
       -  DEBUG (fprintf (stderr, "listxattr (%s, %p, %u)\n", url, list, size));
       +  DEBUG (fprintf (stderr, "listxattr (%s, %p, %llu)\n",
       +                  url, list, (unsigned long long)size));
          int ret = smbc_getFunctionListxattr (ctx) (ctx, url, list, size) ? -errno : 0;
          free (url);
          return ret;
 (DIR) diff --git a/usmb_file.c b/usmb_file.c
       @@ -150,8 +150,8 @@ int usmb_read (const char *filename UNUSED, char *buff, size_t len, off_t off,
          assert (32768 >= len);
        
          SMBCFILE *file = fd_to_smbcfile (fi->fh);
       -  DEBUG (fprintf (stderr, "read (%p, %p, %u, %lld) ",
       -                  (void *)file, buff, len, off));
       +  DEBUG (fprintf (stderr, "read (%p, %p, %llu, %lld) ",
       +                  (void *)file, buff, (unsigned long long)len, (long long)off));
        
          if (0 > smbc_getFunctionLseek (ctx) (ctx, file, off, SEEK_SET))
          {
       @@ -169,8 +169,8 @@ int usmb_write (const char *filename UNUSED, const char *buff, size_t len,
                        off_t off, struct fuse_file_info *fi)
        {
          SMBCFILE *file = fd_to_smbcfile (fi->fh);
       -  DEBUG (fprintf (stderr, "write (%p, %p, len=%u, off=%lld) ",
       -                  (void *)file, buff, len, off));
       +  DEBUG (fprintf (stderr, "write (%p, %p, len=%llu, off=%lld) ",
       +                  (void *)file, buff, (unsigned long long)len, (long long)off));
        
          if (0 > smbc_getFunctionLseek (ctx) (ctx, file, off, SEEK_SET))
            return -errno;