diff options
Diffstat (limited to 'iostat.h')
-rw-r--r-- | iostat.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 *); |