diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-03 10:07:36 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-03 10:07:36 +0000 |
commit | 36b9df2b2727530faaa6865c32c08d9396c3ac67 (patch) | |
tree | 4defc7218f9cea8ca9d90343b86adce80ff94f42 | |
parent | 8130f56637a7348ded71fcbf5beb1047bce628bc (diff) | |
download | swis-36b9df2b2727530faaa6865c32c08d9396c3ac67.tar.gz swis-36b9df2b2727530faaa6865c32c08d9396c3ac67.tar.bz2 |
Update
git-svn-id: file:///svnroot/swis/trunk@8 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
-rw-r--r-- | src/html-strip.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/html-strip.l b/src/html-strip.l index 79ff0d0..bc7b9f8 100644 --- a/src/html-strip.l +++ b/src/html-strip.l @@ -62,7 +62,7 @@ parse_content_type() { error(0,0,"enabling conversion %s->%s\n", buf,"utf-8"); cd = iconv_open ("UTF-8", buf); - if (cd == (iconv_t)-1) + if (cd == INVALID_ICONV_CD) error (0, errno, "cannot convert from %s", buf); } } @@ -90,11 +90,11 @@ convert_output () size_t rc; insize = idx; - rc = iconv(cd, (ICONV_CONST char**)&inptr, &insize, &outptr, &outsize); + rc = iconv (cd, (ICONV_CONST char**)&inptr, &insize, &outptr, &outsize); if (outptr != outbuf) { int saved_errno = errno; - if (fwrite(outbuf, 1, outptr - outbuf, yyout) < outptr - outbuf) + if (fwrite (outbuf, 1, outptr - outbuf, yyout) < outptr - outbuf) error (1, errno, "write error"); errno = saved_errno; } @@ -104,7 +104,7 @@ convert_output () error (1, 0, "cannot convert \"%.*s\"", idx, inbuf); else if (errno == EINVAL) { - memmove(inbuf, inptr, insize); + memmove (inbuf, inptr, insize); idx = insize; } else if (errno != E2BIG) |