]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix gcc -Wall warning.
authorBruno Haible <bruno@clisp.org>
Tue, 8 Feb 2005 11:31:51 +0000 (11:31 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:11 +0000 (12:12 +0200)
gettext-tools/libgrep/ChangeLog
gettext-tools/libgrep/kwset.c
gettext-tools/libgrep/kwset.h

index 37bc9d27027c718223aeb204ce132f62674593da..6c830cb1f069e678cb528843b3531c5ac3dcf71e 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-08  Bruno Haible  <bruno@clisp.org>
+
+       * kwset.h (kwsincr, kwsprep): Change return type to 'const char *'.
+       * kwset.c (kwsincr, kwsprep): Likewise.
+
 2005-02-03  Bruno Haible  <bruno@clisp.org>
 
        * dfa.c (dfaexec): Avoid continuing the loop past the end of the
index cce9207308344f11d55cfadf65b3b3ee58e84286..b87069043ae6383b068d1d470bcdf43cc57fb87c 100644 (file)
@@ -124,7 +124,7 @@ kwsalloc (char const *trans)
 
 /* Add the given string to the contents of the keyword set.  Return NULL
    for success, an error message otherwise. */
-char *
+const char *
 kwsincr (kwset_t kws, char const *text, size_t len)
 {
   struct kwset *kwset;
@@ -374,7 +374,7 @@ treenext (struct tree const *tree, struct trie *next[])
 
 /* Compute the shift for each trie node, as well as the delta
    table and next cache for the given keyword set. */
-char *
+const char *
 kwsprep (kwset_t kws)
 {
   register struct kwset *kwset;
index ec8a357162f9ba3ef3c41da7bf1c1a4d6c6bcd58..cc667d525c9cb545a3a1b008d55bb3d09696daea 100644 (file)
@@ -40,11 +40,11 @@ extern kwset_t kwsalloc (char const *);
 /* Incrementally extend the keyword set to include the given string.
    Return NULL for success, or an error message.  Remember an index
    number for each keyword included in the set. */
-extern char *kwsincr (kwset_t, char const *, size_t);
+extern const char *kwsincr (kwset_t, char const *, size_t);
 
 /* When the keyword set has been completely built, prepare it for
    use.  Return NULL for success, or an error message. */
-extern char *kwsprep (kwset_t);
+extern const char *kwsprep (kwset_t);
 
 /* Search through the given buffer for a member of the keyword set.
    Return a pointer to the leftmost longest match found, or NULL if