X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoom-bug-641.c;h=3275a90f6ecb0028843bbd3902e917e6ea881b23;hp=d8afa4d9754d286075cc4418d801a83c450163ff;hb=70ce06b6fcbe3a53e94111ecedf0312848647c1b;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/zoom/zoom-bug-641.c b/zoom/zoom-bug-641.c index d8afa4d..3275a90 100644 --- a/zoom/zoom-bug-641.c +++ b/zoom/zoom-bug-641.c @@ -1,8 +1,7 @@ -/* $Id: zoom-bug-641.c,v 1.2 2007-01-03 08:42:17 adam Exp $ */ - -/** \file zoom-bug641.c - \brief Program to illustrate bug 641 -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data + * See the file LICENSE for details. + */ #include #include @@ -49,7 +48,7 @@ int main(int argc, char **argv) } size = statbuf.st_size; printf("size=%lu\n", (unsigned long) size); - buf = xmalloc(size+1); + buf = (char *) xmalloc(size+1); while ((n = read(fd, &buf[offset], size)) < size) { if (n < 0) { perror("read"); @@ -84,7 +83,9 @@ 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 */ +