projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Declare debug_levels[] const
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 28061db8ea8f9a51d8e884c317ee3fc4309e11b1..bb0627b208a6c06bbcc4968744f838146f8060d3 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-2094,7
+2094,7
@@
static int fill_def_thread(void)
static void show_debug_categories(void)
{
#ifdef FIO_INC_DEBUG
static void show_debug_categories(void)
{
#ifdef FIO_INC_DEBUG
- struct debug_level *dl = &debug_levels[0];
+
const
struct debug_level *dl = &debug_levels[0];
int curlen, first = 1;
curlen = 0;
int curlen, first = 1;
curlen = 0;
@@
-2184,7
+2184,7
@@
static void usage(const char *name)
}
#ifdef FIO_INC_DEBUG
}
#ifdef FIO_INC_DEBUG
-struct debug_level debug_levels[] = {
+
const
struct debug_level debug_levels[] = {
{ .name = "process",
.help = "Process creation/exit logging",
.shift = FD_PROCESS,
{ .name = "process",
.help = "Process creation/exit logging",
.shift = FD_PROCESS,
@@
-2262,7
+2262,7
@@
struct debug_level debug_levels[] = {
static int set_debug(const char *string)
{
static int set_debug(const char *string)
{
- struct debug_level *dl;
+
const
struct debug_level *dl;
char *p = (char *) string;
char *opt;
int i;
char *p = (char *) string;
char *opt;
int i;