diff options
author | Daniel Mack <zonque@gmail.com> | 2014-03-07 21:38:48 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2014-03-07 21:38:48 +0100 |
commit | 2c5859afecee81e345fc9526b1083bf79990ffb8 (patch) | |
tree | 8bc8deeea888c3df4a28a5f94f3ab79da3fe6b30 /src/core/job.c | |
parent | fe8d029277f8077d4537489b358ce7f10d59ecc2 (diff) |
Make tables for DEFINE_STRING_TABLE_LOOKUP consistent
Bring some arrays that are used for DEFINE_STRING_TABLE_LOOKUP() in the
same order than the enums they reference.
Also, pass the corresponding _MAX value to the array initalizer where
appropriate.
Diffstat (limited to 'src/core/job.c')
-rw-r--r-- | src/core/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/job.c b/src/core/job.c index 9c099c686f..8e98bd93ab 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -1150,9 +1150,9 @@ static const char* const job_mode_table[_JOB_MODE_MAX] = { [JOB_REPLACE] = "replace", [JOB_REPLACE_IRREVERSIBLY] = "replace-irreversibly", [JOB_ISOLATE] = "isolate", + [JOB_FLUSH] = "flush", [JOB_IGNORE_DEPENDENCIES] = "ignore-dependencies", [JOB_IGNORE_REQUIREMENTS] = "ignore-requirements", - [JOB_FLUSH] = "flush", }; DEFINE_STRING_TABLE_LOOKUP(job_mode, JobMode); |