summaryrefslogtreecommitdiffstats
path: root/buffy.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-04-16 12:23:42 -0700
committerKevin McCarthy <kevin@8t8.us>2019-04-16 12:23:42 -0700
commit6317a30369ef23b8e1b5e87692b93aa7bb9d1aaf (patch)
tree259cc01de853d3c3a4c20d9999fa684b22e1e2e9 /buffy.h
parent4084bda4b1aa83f7f858eddda59343a931624998 (diff)
Change BUFFY->realpath to be const char *.
BUFFY->path is a fixed array (which will be converted to a BUFFER in the next commit). This is needed to call mutt_expand_path(). However, BUFFY->realpath has no such need, and so it is a bit wasteful (not to mention not big enough) to store as such.
Diffstat (limited to 'buffy.h')
-rw-r--r--buffy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffy.h b/buffy.h
index 89091c9c..e045f8fd 100644
--- a/buffy.h
+++ b/buffy.h
@@ -26,8 +26,8 @@
typedef struct buffy_t
{
char path[_POSIX_PATH_MAX];
- char realpath[_POSIX_PATH_MAX]; /* used for duplicate detection, context comparison,
- and the sidebar */
+ const char *realpath; /* used for duplicate detection, context comparison,
+ and the sidebar */
off_t size;
struct buffy_t *next;
short new; /* mailbox has new mail */