checkpoint_total_format is now const
* src/checkpoint.c (checkpoint_total_format): Now const, and local to format_checkpoint_string.
This commit is contained in:
@@ -168,12 +168,6 @@ checkpoint_finish_compile (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *checkpoint_total_format[] = {
|
|
||||||
"R",
|
|
||||||
"W",
|
|
||||||
"D"
|
|
||||||
};
|
|
||||||
|
|
||||||
static intmax_t
|
static intmax_t
|
||||||
getwidth (FILE *fp)
|
getwidth (FILE *fp)
|
||||||
{
|
{
|
||||||
@@ -289,7 +283,9 @@ format_checkpoint_string (FILE *fp, idx_t len,
|
|||||||
|
|
||||||
case 'T':
|
case 'T':
|
||||||
{
|
{
|
||||||
const char **fmt = checkpoint_total_format, *fmtbuf[3];
|
static char const *const checkpoint_total_format[]
|
||||||
|
= { "R", "W", "D" };
|
||||||
|
char const *const *fmt = checkpoint_total_format, *fmtbuf[3];
|
||||||
struct wordsplit ws;
|
struct wordsplit ws;
|
||||||
compute_duration_ns ();
|
compute_duration_ns ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user