/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
*/
schema ? schema : "unknown");
if (render)
{
- if (write(render, 1, len, stdout) != len)
+ if (fwrite(render, 1, len, stdout) != (size_t) len)
{
printf("write to stdout failed\n");
}
printf("\n");
if (opac_render)
{
- if (fwrite(opac_render, 1, opac_len, stdout) != opac_len)
+ if (fwrite(opac_render, 1, opac_len, stdout) != (size_t)
+ opac_len)
printf("write to stdout failed\n");
}
}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab