]> Savannah Git Hosting - gnulib.git/commitdiff
quotearg: constify get_quoting_style parameters
authorPádraig Brady <P@draigBrady.com>
Tue, 3 Nov 2015 10:59:55 +0000 (10:59 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 3 Nov 2015 11:02:04 +0000 (11:02 +0000)
* lib/quotearg.h (get_quoting_style): Mark parameter as const.
* lib/quotearg.c (get_quoting_style): Likewise.

ChangeLog
lib/quotearg.c
lib/quotearg.h

index 2b8276fee68c83f436188c12a45398cb3c96f2ed..81c5391abce9c0bbddc1d70812e3d95ea3256b6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-11-03  Pádraig Brady  <P@draigBrady.com>
+
+       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  <P@draigBrady.com>
 
        quotearg: add support for $'' shell escaping
index 77896bffb0b7db8561796de59ab6bf01962304dc..85050815073350850f930fb3ebba5ad3faaa2e4e 100644 (file)
@@ -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;
 }
index 2b7c93c91556125a9b4e91ffb64bbd2dec09b166..edee3b59298d284e5772962d15b75032dcd8cb15 100644 (file)
@@ -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.  */