Fix the most blatant -Wall errors.

This commit is contained in:
gibbs 1995-09-15 06:18:56 +00:00
parent 6669165a88
commit af49d3bfec
5 changed files with 22 additions and 9 deletions

View File

@ -2,11 +2,16 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
* $Id: 3cbc_enc.c,v 1.2 1994/07/19 19:21:37 g89r4222 Exp $
* $Id: 3cbc_enc.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
*/
#include "des_locl.h"
void
xp(a)
unsigned char *a;
{ int i; for(i=0; i<8; i++) printf("%02X",a[i]);printf("\n");}
int des_3cbc_encrypt(input,output,length,ks1,ks2,iv1,iv2,encrypt)
des_cblock *input;
des_cblock *output;
@ -53,6 +58,3 @@ xp(output);
return(0);
}
xp(a)
unsigned char *a;
{ int i; for(i=0; i<8; i++) printf("%02X",a[i]);printf("\n");}

View File

@ -2,7 +2,7 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
* $Id: 3ecb_enc.c,v 1.2 1994/07/19 19:21:38 g89r4222 Exp $
* $Id: 3ecb_enc.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
*/
#include "des_locl.h"
@ -13,7 +13,7 @@ des_cblock *output;
des_key_schedule ks1,ks2;
int encrypt;
{
register unsigned long l0,l1,t;
register unsigned long l0,l1;
register unsigned char *in,*out;
unsigned long ll[2];

View File

@ -2,9 +2,12 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
* $Id: enc_read.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
* $Id: enc_read.c,v 1.2 1995/05/30 06:40:11 rgrimes Exp $
*/
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <errno.h>
#include "des_locl.h"

View File

@ -2,9 +2,14 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
* $Id: enc_writ.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
* $Id: enc_writ.c,v 1.2 1995/05/30 06:40:12 rgrimes Exp $
*/
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include "des_locl.h"

View File

@ -2,9 +2,12 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
* $Id: rand_key.c,v 1.1.1.1 1994/09/30 14:49:51 csgr Exp $
* $Id: rand_key.c,v 1.2 1995/05/09 18:05:15 wollman Exp $
*/
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include "des_locl.h"
int des_random_key(ret)