[Pkg-wmaker-commits] [wmcoincoin] 54/87: Fix compiler warning.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Aug 28 17:27:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcoincoin.
commit 85ee411133872ceccaac9eedeeb4178301326b52
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Nov 11 12:13:53 2014 -0600
Fix compiler warning.
In particular,
palmipede.c: In function ‘editw_insert_string’:
palmipede.c:572:3: warning: passing argument 2 of ‘convert_to_iso8859’
from incompatible pointer type [enabled by default]
convert_to_iso8859("UTF-8", &s);
^
In file included from palmipede.c:193:0:
coin_util.h:94:6: note: expected ‘char **’ but argument is of type
‘unsigned char **’
void convert_to_iso8859(const char *src_encoding, char **psrc);
^
---
src/palmipede.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/palmipede.c b/src/palmipede.c
index d5aa15b..08df51d 100644
--- a/src/palmipede.c
+++ b/src/palmipede.c
@@ -568,7 +568,7 @@ editw_erase(EditW *ew)
int
editw_insert_string(EditW *ew, const unsigned char *str)
{
- unsigned char *s = strdup(str);
+ char *s = strdup(str);
convert_to_iso8859("UTF-8", &s);
int ls,lb,lrest,ldec;
int tronq;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcoincoin.git
More information about the Pkg-wmaker-commits
mailing list