From 56733740ed04d740442c68bc875af45d25fe7394 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 29 Feb 2012 14:42:20 +0100 Subject: [PATCH] * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add missing const qualifiers. * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise. --- ChangeLog | 6 ++++++ grub-core/gnulib/argp-fmtstream.c | 4 ++-- grub-core/gnulib/argp-fmtstream.h | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 95b00cddc..266047a0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-02-29 Vladimir Serbinenko + + * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add + missing const qualifiers. + * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise. + 2012-02-29 Vladimir Serbinenko * util/getroot.c [__APPLE__]: Add missing includes. diff --git a/grub-core/gnulib/argp-fmtstream.c b/grub-core/gnulib/argp-fmtstream.c index 01e7a478f..248a09a3b 100644 --- a/grub-core/gnulib/argp-fmtstream.c +++ b/grub-core/gnulib/argp-fmtstream.c @@ -119,9 +119,9 @@ weak_alias (__argp_fmtstream_free, argp_fmtstream_free) size_t -__argp_get_display_len (char *beg, char *end) +__argp_get_display_len (const char *beg, const char *end) { - char *ptr; + const char *ptr; size_t r = 0; mbstate_t ps; diff --git a/grub-core/gnulib/argp-fmtstream.h b/grub-core/gnulib/argp-fmtstream.h index 53ba3eeb3..8a67817b1 100644 --- a/grub-core/gnulib/argp-fmtstream.h +++ b/grub-core/gnulib/argp-fmtstream.h @@ -336,7 +336,7 @@ __argp_fmtstream_point (argp_fmtstream_t __fs) } size_t -__argp_get_display_len (char *beg, char *end); +__argp_get_display_len (const char *beg, const char *end); #if !_LIBC #undef __argp_fmtstream_putc