Skip to content

Commit

Permalink
Make local const string array static
Browse files Browse the repository at this point in the history
like it is in io_ddir_name().

Signed-off-by: Tomohiro Kusumi <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
kusumi authored and axboe committed Aug 8, 2016
1 parent d2c87a7 commit 313e5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_ddir.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static inline int ddir_rw(enum fio_ddir ddir)

static inline const char *ddir_str(enum td_ddir ddir)
{
const char *__str[] = { NULL, "read", "write", "rw", NULL,
static const char *__str[] = { NULL, "read", "write", "rw", NULL,
"randread", "randwrite", "randrw",
"trim", NULL, NULL, NULL, "randtrim" };

Expand Down

0 comments on commit 313e5c3

Please sign in to comment.