aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-10-03 10:07:36 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-10-03 10:07:36 +0000
commit36b9df2b2727530faaa6865c32c08d9396c3ac67 (patch)
tree4defc7218f9cea8ca9d90343b86adce80ff94f42
parent8130f56637a7348ded71fcbf5beb1047bce628bc (diff)
downloadswis-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.l8
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)

Return to:

Send suggestions and report system problems to the System administrator.