]> sourceware.org Git - lvm2.git/commitdiff
lv: fix typedef
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 3 May 2013 14:02:43 +0000 (16:02 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 3 May 2013 14:02:43 +0000 (16:02 +0200)
Since older gcc is not accepting duplication of same typedef,
stay with predeclared enum type.

lib/metadata/lv.c
lib/metadata/lv.h

index 283b8c49869b401df8c820f25c6c59fee71f78f9..69b13faf1866d7c657ea59afe96b8e36d6e1adbf 100644 (file)
@@ -705,7 +705,7 @@ char *lv_host_dup(struct dm_pool *mem, const struct logical_volume *lv)
 }
 
 int lv_active_change(struct cmd_context *cmd, struct logical_volume *lv,
-                    activation_change_t activate)
+                    enum activation_change activate)
 {
        if (activate == CHANGE_AN) {
                log_verbose("Deactivating logical volume \"%s\"", lv->name);
index ed0d7452dd8937d74a785e250bbbd12ced5538a3..8e771a1e1e3b3b50655c17e8d439fb439024c076 100644 (file)
@@ -21,7 +21,6 @@ struct dm_list;
 struct lv_segment;
 struct replicator_device;
 enum activation_change;
-typedef enum activation_change activation_change_t;
 
 struct logical_volume {
        union lvid lvid;
@@ -88,7 +87,7 @@ int lv_set_creation(struct logical_volume *lv,
                    const char *hostname, uint64_t timestamp);
 const char *lv_layer(const struct logical_volume *lv);
 int lv_active_change(struct cmd_context *cmd, struct logical_volume *lv,
-                    activation_change_t activate);
+                    enum activation_change activate);
 char *lv_active_dup(struct dm_pool *mem, const struct logical_volume *lv);
 const struct logical_volume *lv_lock_holder(const struct logical_volume *lv);
 #endif /* _LVM_LV_H */
This page took 0.043263 seconds and 5 git commands to generate.