summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-07-31 16:52:16 +0000
committermarkm <markm@FreeBSD.org>2002-07-31 16:52:16 +0000
commit7726f590e76ed6b044f3241153ee1fea90aed1a6 (patch)
treea69345ef05c6754c27e84651c8b012db33df2ec1 /bin/ed
parent80ff821584cb31d63941a00fd81d828ebe5d50a9 (diff)
downloadFreeBSD-src-7726f590e76ed6b044f3241153ee1fea90aed1a6.zip
FreeBSD-src-7726f590e76ed6b044f3241153ee1fea90aed1a6.tar.gz
Fix some easy WARNS.
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/cbc.c12
-rw-r--r--bin/ed/ed.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/ed/cbc.c b/bin/ed/cbc.c
index b0b0153..bb96022 100644
--- a/bin/ed/cbc.c
+++ b/bin/ed/cbc.c
@@ -56,11 +56,11 @@ __FBSDID("$FreeBSD$");
#define MEMZERO(dest,len) memset((dest), 0, (len))
/* Hide the calls to the primitive encryption routines. */
-#define DES_KEY(buf) \
- if (des_setkey(buf)) \
+#define DES_KEY(buf) \
+ if (des_setkey(buf)) \
des_error("des_setkey");
-#define DES_XFORM(buf) \
- if (des_cipher(buf, buf, 0L, (inverse ? -1 : 1))) \
+#define DES_XFORM(buf) \
+ if (des_cipher((char *)buf, (char *)buf, 0L, inverse ? -1 : 1)) \
des_error("des_cipher");
/*
@@ -332,7 +332,7 @@ set_des_key(Desbuf buf) /* key block */
* This encrypts using the Cipher Block Chaining mode of DES
*/
int
-cbc_encode(char *msgbuf, int n, FILE *fp)
+cbc_encode(unsigned char *msgbuf, int n, FILE *fp)
{
int inverse = 0; /* 0 to encrypt, 1 to decrypt */
@@ -370,7 +370,7 @@ cbc_encode(char *msgbuf, int n, FILE *fp)
* fp input file descriptor
*/
int
-cbc_decode(char *msgbuf, FILE *fp)
+cbc_decode(unsigned char *msgbuf, FILE *fp)
{
Desbuf tbuf; /* temp buffer for initialization vector */
int n; /* number of bytes actually read */
diff --git a/bin/ed/ed.h b/bin/ed/ed.h
index aaa63f9..9233cd3 100644
--- a/bin/ed/ed.h
+++ b/bin/ed/ed.h
@@ -180,8 +180,8 @@ void add_line_node(line_t *);
int append_lines(long);
int apply_subst_template(const char *, regmatch_t *, int, int);
int build_active_list(int);
-int cbc_decode(char *, FILE *);
-int cbc_encode(char *, int, FILE *);
+int cbc_decode(unsigned char *, FILE *);
+int cbc_encode(unsigned char *, int, FILE *);
int check_addr_range(long, long);
void clear_active_list(void);
void clear_undo_stack(void);
OpenPOWER on IntegriCloud