aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-05-24 21:50:33 +0000
committerDavid Shaw <[email protected]>2003-05-24 21:50:33 +0000
commit3a23c4230bc61f905a316c2df9116d871fd9029f (patch)
tree6e913e8b23f538fb0bf19e213568a140f077b54e /g10/armor.c
parent* bftest.c, crlf.c, mk-tdata.c, mpicalc.c, shmtest.c: Edit all (diff)
downloadgnupg-3a23c4230bc61f905a316c2df9116d871fd9029f.tar.gz
gnupg-3a23c4230bc61f905a316c2df9116d871fd9029f.zip
* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
Diffstat (limited to '')
-rw-r--r--g10/armor.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 98559d0c9..f00742295 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -39,9 +39,9 @@
#include "i18n.h"
#ifdef HAVE_DOSISH_SYSTEM
- #define LF "\r\n"
+#define LF "\r\n"
#else
- #define LF "\n"
+#define LF "\n"
#endif
#define MAX_LINELEN 20000
@@ -773,7 +773,7 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
/* FIXME: Here we should emit another control packet,
* so that we know in mainproc that we are processing
* a clearsign message */
- #if 0
+#if 0
for(rc=0;!rc;) {
rc = 0 /*check_trailer( &fhdr, c )*/;
if( !rc ) {
@@ -791,7 +791,7 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
log_error(_("error in trailer line\n"));
rc = G10ERR_INVALID_ARMOR;
}
- #endif
+#endif
}
}
}
@@ -817,14 +817,14 @@ armor_filter( void *opaque, int control,
int idx, idx2;
size_t n=0;
u32 crc;
- #if 0
+#if 0
static FILE *fp ;
if( !fp ) {
fp = fopen("armor.out", "w");
assert(fp);
}
- #endif
+#endif
if( DBG_FILTER )
log_debug("armor-filter: control: %d\n", control );
@@ -921,11 +921,11 @@ armor_filter( void *opaque, int control,
}
else
rc = radix64_read( afx, a, &n, buf, size );
- #if 0
+#if 0
if( n )
if( fwrite(buf, n, 1, fp ) != 1 )
BUG();
- #endif
+#endif
*ret_len = n;
}
else if( control == IOBUFCTRL_FLUSH && !afx->cancel ) {
@@ -960,10 +960,10 @@ armor_filter( void *opaque, int control,
if ( afx->hdrlines ) {
for ( s = afx->hdrlines; *s; s++ ) {
- #ifdef HAVE_DOSISH_SYSTEM
+#ifdef HAVE_DOSISH_SYSTEM
if ( *s == '\n' )
iobuf_put( a, '\r');
- #endif
+#endif
iobuf_put(a, *s );
}
}