From: Pádraig Brady
Date: Tue, 3 Nov 2015 10:59:55 +0000 (+0000) Subject: quotearg: constify get_quoting_style parameters X-Git-Tag: v1.0~6904 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=77d702067d8bf61f96f2c4ef451a09651b27628b;p=gnulib.git quotearg: constify get_quoting_style parameters * lib/quotearg.h (get_quoting_style): Mark parameter as const. * lib/quotearg.c (get_quoting_style): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 2b8276fee6..81c5391abc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-11-03 Pádraig Brady
+ + quotearg: constify get_quoting_style parameters + * lib/quotearg.h (get_quoting_style): Mark parameter as const. + * lib/quotearg.c (get_quoting_style): Likewise. + 2015-11-02 Pádraig Brady
quotearg: add support for $'' shell escaping diff --git a/lib/quotearg.c b/lib/quotearg.c index 77896bffb0..8505081507 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -120,7 +120,7 @@ clone_quoting_options (struct quoting_options *o) /* Get the value of O's quoting style. If O is null, use the default. */ enum quoting_style -get_quoting_style (struct quoting_options *o) +get_quoting_style (struct quoting_options const *o) { return (o ? o : &default_quoting_options)->style; } diff --git a/lib/quotearg.h b/lib/quotearg.h index 2b7c93c915..edee3b5929 100644 --- a/lib/quotearg.h +++ b/lib/quotearg.h @@ -278,7 +278,7 @@ struct quoting_options; struct quoting_options *clone_quoting_options (struct quoting_options *o); /* Get the value of O's quoting style. If O is null, use the default. */ -enum quoting_style get_quoting_style (struct quoting_options *o); +enum quoting_style get_quoting_style (struct quoting_options const *o); /* In O (or in the default if O is null), set the value of the quoting style to S. */