X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst6.c;h=d81cfc8e1fd2247861aa6331880317a10e6ff05f;hb=cd7c85097df2b7ccd4728e5911348b6e78ccf7f2;hp=cce5ea107edb229a1e3f815ef93f2e9fe89b6e15;hpb=7ef1b50f481cda83d012cc3d69d83f9313836f1f;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst6.c b/zoom/zoomtst6.c index cce5ea1..d81cfc8 100644 --- a/zoom/zoomtst6.c +++ b/zoom/zoomtst6.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -30,7 +30,7 @@ static void display_records (const char *tname, ZOOM_resultset r) printf ("%d %s\n", pos+1, (db ? db : "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 ("\n"); @@ -127,6 +127,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab