Code

store.h: Reuse the sdb_metric_store_t type for a metric's store field.
authorSebastian Harl <sh@tokkee.org>
Sun, 4 Sep 2016 13:22:35 +0000 (09:22 -0400)
committerSebastian Harl <sh@tokkee.org>
Sun, 4 Sep 2016 13:22:35 +0000 (09:22 -0400)
src/include/core/store.h

index 5f60c8dfb0a4a1091953ab3a82d8d4a36632fefb..7a9a209b788d0f2d9c616ff3550e66eb09fb4f3d 100644 (file)
@@ -133,10 +133,7 @@ typedef struct {
 typedef struct {
        const char *hostname;
        const char *name;
-       struct {
-               const char *type;
-               const char *id;
-       } store;
+       sdb_metric_store_t store;
 
        sdb_time_t last_update;
        sdb_time_t interval;