The struct of the type option is only used to initialise a field inside the ebt_u_watcher struct and is not modified anywhere. Signed-off-by: Gargi Sharma <gs051095@xxxxxxxxx> --- extensions/ebt_log.c | 2 +- extensions/ebt_nflog.c | 2 +- extensions/ebt_ulog.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/ebt_log.c b/extensions/ebt_log.c index 1cf831a..97d5091 100644 --- a/extensions/ebt_log.c +++ b/extensions/ebt_log.c @@ -61,7 +61,7 @@ static int name_to_loglevel(char* arg) #define LOG_IP '4' #define LOG_LOG '5' #define LOG_IP6 '6' -static struct option opts[] = +static const struct option opts[] = { { "log-prefix", required_argument, 0, LOG_PREFIX }, { "log-level" , required_argument, 0, LOG_LEVEL }, diff --git a/extensions/ebt_nflog.c b/extensions/ebt_nflog.c index 0cd10e0..405673a 100644 --- a/extensions/ebt_nflog.c +++ b/extensions/ebt_nflog.c @@ -25,7 +25,7 @@ enum { NFLOG_NFLOG = 0x16, }; -static struct option nflog_opts[] = { +static const struct option nflog_opts[] = { {"nflog-group", required_argument, NULL, NFLOG_GROUP}, {"nflog-prefix", required_argument, NULL, NFLOG_PREFIX}, {"nflog-range", required_argument, NULL, NFLOG_RANGE}, diff --git a/extensions/ebt_ulog.c b/extensions/ebt_ulog.c index 162586d..54eec53 100644 --- a/extensions/ebt_ulog.c +++ b/extensions/ebt_ulog.c @@ -24,7 +24,7 @@ #define ULOG_CPRANGE '3' #define ULOG_QTHRESHOLD '4' #define ULOG_ULOG '5' -static struct option opts[] = +static const struct option opts[] = { { "ulog-prefix" , required_argument, 0, ULOG_PREFIX }, { "ulog-nlgroup" , required_argument, 0, ULOG_NLGROUP }, -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html