projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type casts for tests for C++ compile
[yaz-moved-to-github.git]
/
zoom
/
zoomsh.c
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
2cbd6d4
..
363b1e0
100644
(file)
--- a/
zoom/zoomsh.c
+++ b/
zoom/zoomsh.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* 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.
*/
* See the file LICENSE for details.
*/
@@
-207,7
+207,7
@@
static void display_records(ZOOM_connection c,
schema ? schema : "unknown");
if (render)
{
schema ? schema : "unknown");
if (render)
{
- if (fwrite(render, 1, len, stdout) != len)
+ if (fwrite(render, 1, len, stdout) != (size_t) len)
{
printf("write to stdout failed\n");
}
{
printf("write to stdout failed\n");
}
@@
-215,7
+215,8
@@
static void display_records(ZOOM_connection c,
printf("\n");
if (opac_render)
{
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");
}
}
printf("write to stdout failed\n");
}
}
@@
-681,6
+682,7
@@
int main(int argc, char **argv)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab