sys/vfs/hammer: Use typedef'd for struct hammer_snapshot_data*
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 29 Aug 2016 15:25:28 +0000 (00:25 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 29 Aug 2016 15:25:28 +0000 (00:25 +0900)
The whole hammer code is mix of using struct and typedef'd.
Use typedef'd because majority of the code use typedef'd.

sbin/hammer/cmd_cleanup.c
sbin/hammer/cmd_snapshot.c
sbin/hammer/cmd_softprune.c

index c43f040..bb03644 100644 (file)
@@ -626,7 +626,7 @@ migrate_one_snapshot(int fd, const char *fpath,
                     struct hammer_ioc_snapshot *snapshot)
 {
        if (fpath) {
-               struct hammer_snapshot_data *snap;
+               hammer_snapshot_data_t snap;
                struct tm tm;
                time_t t;
                int year;
@@ -935,7 +935,7 @@ cleanup_softlinks(int fd, int new_config,
        if (new_config) {
                struct hammer_ioc_snapshot snapshot;
                struct hammer_ioc_snapshot dsnapshot;
-               struct hammer_snapshot_data *snap;
+               hammer_snapshot_data_t snap;
                struct tm *tp;
                time_t t;
                time_t dt;
index 3c00e21..978eca0 100644 (file)
@@ -481,7 +481,7 @@ snapshot_ls(const char *path)
        struct hammer_ioc_snapshot snapshot;
        struct hammer_ioc_pseudofs_rw pfs;
        struct hammer_pseudofs_data pfs_od;
-       struct hammer_snapshot_data *snap;
+       hammer_snapshot_data_t snap;
        struct tm *tp;
        time_t t;
        uint32_t i;
index 900ca02..cb1fe25 100644 (file)
@@ -324,7 +324,7 @@ hammer_softprune_scanmeta(int fd, struct softprune *scan, int delete_all)
        struct hammer_ioc_version       version;
        struct hammer_ioc_snapshot      snapshot;
        struct hammer_ioc_snapshot      dsnapshot;
-       struct hammer_snapshot_data     *snap;
+       hammer_snapshot_data_t          snap;
        time_t ct;
 
        /*