diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-08-07 13:09:56 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-08-12 15:09:57 +0100 |
commit | 99f55abc56bf1ce6b6f0e7d9cae67e347ace16b2 (patch) | |
tree | 5004ae8c575a94c345af5647503caa3b3d290a37 /libdm/libdm-timestamp.c | |
parent | c2d814e78d17320a557c1c0fe40440cda896ea2d (diff) | |
download | lvm2-99f55abc56bf1ce6b6f0e7d9cae67e347ace16b2.tar.gz |
libdm: add dm_timestamp_copy()
Diffstat (limited to 'libdm/libdm-timestamp.c')
-rw-r--r-- | libdm/libdm-timestamp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdm/libdm-timestamp.c b/libdm/libdm-timestamp.c index fe006d58f..3e01442ef 100644 --- a/libdm/libdm-timestamp.c +++ b/libdm/libdm-timestamp.c @@ -168,6 +168,11 @@ uint64_t dm_timestamp_delta(struct dm_timestamp *ts1, struct dm_timestamp *ts2) return t2 - t1; } +void dm_timestamp_copy(struct dm_timestamp *ts_new, struct dm_timestamp *ts_old) +{ + *ts_new = *ts_old; +} + void dm_timestamp_destroy(struct dm_timestamp *ts) { dm_free(ts); |