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:
70c49c4
)
Using printf instead of putchar
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 20 Feb 2002 14:41:19 +0000
(14:41 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 20 Feb 2002 14:41:19 +0000
(14:41 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
6fec877
..
f8aeb96
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.143 2002-02-18 12:54:02 adam Exp $
+ * $Id: client.c,v 1.144 2002-02-20 14:41:19 adam Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-140,7
+140,7
@@
static void print_stringn(const unsigned char *buf, size_t len)
size_t i;
for (i = 0; i<len; i++)
if ((buf[i] <= 126 && buf[i] >= 32) || strchr ("\n\r\t\f", buf[i]))
size_t i;
for (i = 0; i<len; i++)
if ((buf[i] <= 126 && buf[i] >= 32) || strchr ("\n\r\t\f", buf[i]))
- fputc (buf[i], stdout);
+ printf ("%c", buf[i]);
else
printf ("\\X%02X", buf[i]);
}
else
printf ("\\X%02X", buf[i]);
}
@@
-491,7
+491,7
@@
static void print_record(const unsigned char *buf, size_t len)
print_stringn (buf, len);
/* add newline if not already added ... */
if (i <= 0 || buf[i-1] != '\n')
print_stringn (buf, len);
/* add newline if not already added ... */
if (i <= 0 || buf[i-1] != '\n')
- fputc ('\n', stdout);
+ printf ("\n");
}
static void display_record(Z_External *r)
}
static void display_record(Z_External *r)
@@
-569,12
+569,12
@@
static void display_record(Z_External *r)
#if AVOID_MARC_DECODE
/* primitive check for a marc OID 5.1-29 except 16 */
ent->oidsuffix[0] == 5 && ent->oidsuffix[1] < 30 &&
#if AVOID_MARC_DECODE
/* primitive check for a marc OID 5.1-29 except 16 */
ent->oidsuffix[0] == 5 && ent->oidsuffix[1] < 30 &&
- ent->oidsuffix[1] != 16)
+ ent->oidsuffix[1] != 16
#else
#else
- 1
+ 1
#endif
#endif
- )
- {
+ )
+ {
if (marc_display_exl (octet_buf, NULL, 0 /* debug */,
r->u.octet_aligned->len) <= 0)
{
if (marc_display_exl (octet_buf, NULL, 0 /* debug */,
r->u.octet_aligned->len) <= 0)
{