summaryrefslogtreecommitdiffstats
path: root/stat.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-12-02 10:26:09 -0500
committerTavian Barnes <tavianator@tavianator.com>2020-12-02 10:56:41 -0500
commit5920a1b5e19e529ab3a3972348a6d53bcd90acfc (patch)
treec791c10af803beac372c4eef052eca8183410257 /stat.c
parentbdef1cd0bb00251bf92e6a545bb6e0f2dc2814a5 (diff)
downloadbfs-5920a1b5e19e529ab3a3972348a6d53bcd90acfc.tar.xz
Give messages to unconditional assertion failures
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stat.c b/stat.c
index fbbb002..7fb6b50 100644
--- a/stat.c
+++ b/stat.c
@@ -75,7 +75,7 @@ const char *bfs_stat_field_name(enum bfs_stat_field field) {
return "modification time";
}
- assert(false);
+ assert(!"Unrecognized stat field");
return "???";
}
@@ -349,7 +349,7 @@ const struct timespec *bfs_stat_time(const struct bfs_stat *buf, enum bfs_stat_f
case BFS_STAT_MTIME:
return &buf->mtime;
default:
- assert(false);
+ assert(!"Invalid stat field for time");
errno = EINVAL;
return NULL;
}