mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
const: cmirrord array
This commit is contained in:
parent
f65f5e1c22
commit
781bb0ea37
@ -43,14 +43,14 @@ static void usage (FILE *dest)
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int foreground_mode = 0;
|
int foreground_mode = 0;
|
||||||
struct option longopts[] = {
|
static const struct option _long_options[] = {
|
||||||
{ "foreground", no_argument, NULL, 'f' },
|
{ "foreground", no_argument, NULL, 'f' },
|
||||||
{ "help" , no_argument, NULL, 'h' },
|
{ "help" , no_argument, NULL, 'h' },
|
||||||
{ 0, 0, 0, 0 }
|
{ 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
while ((opt = getopt_long (argc, argv, "fh", longopts, NULL)) != -1) {
|
while ((opt = getopt_long (argc, argv, "fh", _long_options, NULL)) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'f':
|
case 'f':
|
||||||
foreground_mode = 1;
|
foreground_mode = 1;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
|
|
||||||
const char *__rq_types_off_by_one[] = {
|
const char * const __rq_types_off_by_one[] = {
|
||||||
"DM_ULOG_CTR",
|
"DM_ULOG_CTR",
|
||||||
"DM_ULOG_DTR",
|
"DM_ULOG_DTR",
|
||||||
"DM_ULOG_PRESUSPEND",
|
"DM_ULOG_PRESUSPEND",
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
/* SHORT_UUID - print last 8 chars of a string */
|
/* SHORT_UUID - print last 8 chars of a string */
|
||||||
#define SHORT_UUID(x) (strlen(x) > 8) ? ((x) + (strlen(x) - 8)) : (x)
|
#define SHORT_UUID(x) (strlen(x) > 8) ? ((x) + (strlen(x) - 8)) : (x)
|
||||||
|
|
||||||
extern const char *__rq_types_off_by_one[];
|
extern const char * const __rq_types_off_by_one[];
|
||||||
#define RQ_TYPE(x) __rq_types_off_by_one[(x) - 1]
|
#define RQ_TYPE(x) __rq_types_off_by_one[(x) - 1]
|
||||||
|
|
||||||
extern int log_tabbing;
|
extern int log_tabbing;
|
||||||
|
Loading…
Reference in New Issue
Block a user