about summary refs log tree commit homepage
path: root/iostat.h
diff options
context:
space:
mode:
Diffstat (limited to 'iostat.h')
-rw-r--r--iostat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/iostat.h b/iostat.h
index 6df96b6..4414ca1 100644
--- a/iostat.h
+++ b/iostat.h
@@ -5,6 +5,10 @@
 struct mog_queue;
 struct mog_fd;
 #define MOG_IOUTIL_LEN (sizeof("1666.00"))
+
+/* this is way larger than it needs to be... */
+#define MOG_IOSTAT_DEVLEN (72)
+
 struct mog_iostat {
         int cs;
         bool ready;
@@ -12,7 +16,7 @@ struct mog_iostat {
         uint8_t dev_tip;
         struct mog_queue *queue;
         char util[MOG_IOUTIL_LEN];
-        char dev[72]; /* this is way larger than it needs to be... */
+        char dev[MOG_IOSTAT_DEVLEN];
 };
 
 void mog_iostat_init(struct mog_iostat *);