diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-14 03:06:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-14 03:06:57 +0100 |
commit | a7bc2c2ac8d26779ed1154841545e8c0efbef31c (patch) | |
tree | f7883e41d928d368c27bc29c9348578cdc1e6760 /src | |
parent | de0229ca36034981f6c380de39bf7ffd3c6b57fa (diff) |
util: introduce FORMAT_BYTES_MAX
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journal-file.c | 2 | ||||
-rw-r--r-- | src/util.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 419e15e46f..59ad84e23b 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2103,7 +2103,7 @@ int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint6 void journal_default_metrics(JournalMetrics *m, int fd) { uint64_t fs_size = 0; struct statvfs ss; - char a[64], b[64], c[64], d[64]; + char a[FORMAT_BYTES_MAX], b[FORMAT_BYTES_MAX], c[FORMAT_BYTES_MAX], d[FORMAT_BYTES_MAX]; assert(m); assert(fd >= 0); diff --git a/src/util.h b/src/util.h index e6ffad6c2e..5413490c13 100644 --- a/src/util.h +++ b/src/util.h @@ -67,6 +67,7 @@ typedef struct dual_timestamp { #define FORMAT_TIMESTAMP_MAX 64 #define FORMAT_TIMESTAMP_PRETTY_MAX 256 #define FORMAT_TIMESPAN_MAX 64 +#define FORMAT_BYTES_MAX 8 #define ANSI_HIGHLIGHT_ON "\x1B[1;39m" #define ANSI_HIGHLIGHT_RED_ON "\x1B[1;32m" |