[Pkg-gnupg-commit] [gnupg2] 101/205: g10: Add const qualifier.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 11 08:38:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit b752d2c93778e6a1c1de3eddf8fc725b0ddd354e
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Mar 16 11:52:41 2016 +0900

    g10: Add const qualifier.
    
    * g10/gpgcompose.c (show_help): Those are strings not to be modified.
    
    --
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 g10/gpgcompose.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/g10/gpgcompose.c b/g10/gpgcompose.c
index ada986e..55d3ae2 100644
--- a/g10/gpgcompose.c
+++ b/g10/gpgcompose.c
@@ -259,8 +259,8 @@ show_help (struct option options[])
 
   for (i = 0; ; i ++)
     {
-      char *option = options[i].option;
-      char *help = options[i].help;
+      const char *option = options[i].option;
+      const char *help = options[i].help;
 
       int l;
       int j;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list