From 58e7e42033b1ac5044ae03f0aa5d5082c5fdb497 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Aug 2009 08:32:44 -0400 Subject: build: reenable "syntax-check" rule: sc_const_long_option * cfg.mk (disable_temporarily): Remove sc_const_long_option. * daemon/guestfsd.c (main): Declare long_options to be "const". * fish/fish.c (main): Likewise. * test-tool/test-tool.c (main): Likewise. --- fish/fish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fish') diff --git a/fish/fish.c b/fish/fish.c index bb0762fd..b0d123d4 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -127,7 +127,7 @@ int main (int argc, char *argv[]) { static const char *options = "a:Df:h::im:nrv?Vx"; - static struct option long_options[] = { + static const struct option long_options[] = { { "add", 1, 0, 'a' }, { "cmd-help", 2, 0, 'h' }, { "file", 1, 0, 'f' }, -- cgit