summaryrefslogtreecommitdiffstats
path: root/bin/ed/cbc.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-03-19 13:29:28 +0000
committerjoerg <joerg@FreeBSD.org>1995-03-19 13:29:28 +0000
commitc6030c6511c69b69a216c893957b01bfc264d365 (patch)
tree163891f0a6f18e48e3d38e4d107ad82c2f5c570a /bin/ed/cbc.c
parent568f2efc88b72b511e26d42250ac4250a6610415 (diff)
downloadFreeBSD-src-c6030c6511c69b69a216c893957b01bfc264d365.zip
FreeBSD-src-c6030c6511c69b69a216c893957b01bfc264d365.tar.gz
You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
Diffstat (limited to 'bin/ed/cbc.c')
-rw-r--r--bin/ed/cbc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/ed/cbc.c b/bin/ed/cbc.c
index 11a8027..62fcd99 100644
--- a/bin/ed/cbc.c
+++ b/bin/ed/cbc.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)bdes.c 5.5 (Berkeley) 6/27/91
- * $Id$
+ * $Id: cbc.c,v 1.4 1994/09/24 02:55:24 davidg Exp $
*/
#ifndef lint
@@ -115,7 +115,7 @@ init_des_cipher()
des_ct = des_n = 0;
- /* initialize the initialization vctor */
+ /* initialize the initialization vector */
MEMZERO(ivec, 8);
/* intialize the padding vector */
@@ -137,6 +137,8 @@ get_des_char(fp)
des_ct = cbc_decode(des_buf, fp);
}
return (des_ct > 0) ? des_buf[des_n++] : EOF;
+#else
+ return (getc(fp));
#endif
}
@@ -153,6 +155,8 @@ put_des_char(c, fp)
des_n = 0;
}
return (des_ct >= 0) ? (des_buf[des_n++] = c) : EOF;
+#else
+ return (fputc(c, fp));
#endif
}
@@ -168,6 +172,8 @@ flush_des_file(fp)
des_n = 0;
}
return (des_ct >= 0 && cbc_encode(des_buf, des_n, fp) >= 0) ? 0 : EOF;
+#else
+ return (fflush(fp));
#endif
}
OpenPOWER on IntegriCloud