From fef5d0af591c6c8a91f69bba5e62c99df1a732c9 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 1 Feb 2008 19:54:46 +0000 Subject: Constantise as much as possible so that it reduces COW usage. --- src/rc/mountinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rc/mountinfo.c') diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index 0d8d7a1..b15a50a 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -335,7 +335,7 @@ static regex_t *get_regex (const char *string) #include "_usage.h" #define extraopts "[mount1] [mount2] ..." #define getoptstring "f:F:n:N:o:O:p:P:ist" getoptstring_COMMON -static struct option longopts[] = { +static const struct option longopts[] = { { "fstype-regex", 1, NULL, 'f'}, { "skip-fstype-regex", 1, NULL, 'F'}, { "node-regex", 1, NULL, 'n'}, -- cgit v1.2.3