summaryrefslogtreecommitdiff
path: root/src/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/truncate.c')
-rw-r--r--src/truncate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/truncate.c b/src/truncate.c
index f26fd45a8..cc4f5075d 100644
--- a/src/truncate.c
+++ b/src/truncate.c
@@ -50,7 +50,8 @@ static bool block_mode;
/* (-r) Reference file to use size from */
static char const *ref_file;
-static struct option const longopts[] = {
+static const struct option const longopts[] =
+{
{"no-create", no_argument, NULL, 'c'},
{"io-blocks", no_argument, NULL, 'o'},
{"reference", required_argument, NULL, 'r'},