summaryrefslogtreecommitdiffstats
path: root/disk-utils/swaplabel.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils/swaplabel.c')
-rw-r--r--disk-utils/swaplabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/swaplabel.c b/disk-utils/swaplabel.c
index 86b3199e4..fbd8ae37d 100644
--- a/disk-utils/swaplabel.c
+++ b/disk-utils/swaplabel.c
@@ -176,7 +176,7 @@ int main(int argc, char *argv[])
char *uuid = NULL, *label = NULL, *devname;
int c, rc = -1;
- struct option longopts[] = {
+ static const struct option longopts[] = {
{ "help", 0, 0, 'h' },
{ "label", 1, 0, 'L' },
{ "uuid", 1, 0, 'U' },