projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5c8ffe6
)
Avoid mixed stmt/vardeclare
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 18 Dec 2005 15:58:02 +0000
(15:58 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 18 Dec 2005 15:58:02 +0000
(15:58 +0000)
util/marcdump.c
patch
|
blob
|
history
diff --git
a/util/marcdump.c
b/util/marcdump.c
index
f41e3cd
..
217feee
100644
(file)
--- a/
util/marcdump.c
+++ b/
util/marcdump.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: marcdump.c,v 1.34 2005-12-17 20:22:01 adam Exp $
+ * $Id: marcdump.c,v 1.35 2005-12-18 15:58:02 adam Exp $
*/
#define _FILE_OFFSET_BITS 64
*/
#define _FILE_OFFSET_BITS 64
@@
-252,8
+252,9
@@
int main (int argc, char **argv)
if (split_fname)
{
char fname[256];
if (split_fname)
{
char fname[256];
+ FILE *sf;
sprintf(fname, "%.200s%07d", split_fname, marc_no);
sprintf(fname, "%.200s%07d", split_fname, marc_no);
- FILE *sf = fopen(fname, "wb");
+ sf = fopen(fname, "wb");
if (!sf)
{
fprintf(stderr, "Could not open %s\n", fname);
if (!sf)
{
fprintf(stderr, "Could not open %s\n", fname);