]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- cleanup
authorArvin Schnell <aschnell@suse.de>
Thu, 30 Aug 2012 15:01:17 +0000 (17:01 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 30 Aug 2012 15:01:17 +0000 (17:01 +0200)
snapper/AppUtil.cc

index 1eaeffc0f3708083840b4c5c7b8f2e721a6f3b30..3fdec2067239a4a779dd0dd97259f9ab09bf198a 100644 (file)
@@ -105,10 +105,8 @@ namespace snapper
     bool
     clonefile(int src_fd, int dest_fd)
     {
-#undef BTRFS_IOCTL_MAGIC
 #define BTRFS_IOCTL_MAGIC 0x94
-#undef BTRFS_IOC_CLONE
-#define BTRFS_IOC_CLONE _IOW (BTRFS_IOCTL_MAGIC, 9, int)
+#define BTRFS_IOC_CLONE _IOW(BTRFS_IOCTL_MAGIC, 9, int)
 
        int r1 = ioctl(dest_fd, BTRFS_IOC_CLONE, src_fd);
        if (r1 != 0)
@@ -318,6 +316,4 @@ namespace snapper
        return s << fixed << double(tv.tv_sec) + (double)(tv.tv_usec) / 1000000.0 << "s";
     }
 
-    const string app_ws = " \t\n";
-
 }