less warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@894 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-26 21:41:16 +00:00
parent 3e317bb818
commit aaafb2bf9c
30 changed files with 149 additions and 82 deletions

View File

@@ -51,7 +51,7 @@ int
md4_tests ()
{
struct test {
char *str;
unsigned char *str;
unsigned char hash[16];
} tests[] = {
{"",
@@ -93,7 +93,7 @@ int
md5_tests ()
{
struct test {
char *str;
unsigned char *str;
unsigned char hash[16];
} tests[] = {
{"", {0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e}},
@@ -127,7 +127,7 @@ int
sha_tests ()
{
struct test {
char *str;
unsigned char *str;
unsigned char hash[20];
} tests[] = {
{"abc", {0xA9, 0x99, 0x3E, 0x36, 0x47, 0x06, 0x81, 0x6A,

View File

@@ -72,7 +72,7 @@ typedef struct {
OtpAlgorithm *otp_find_alg (char *name);
void otp_print_stddict (OtpKey key, char *str);
void otp_print_hex (OtpKey key, char *str);
unsigned opt_checksum (OtpKey key);
unsigned otp_checksum (OtpKey key);
int otp_parse_hex (OtpKey key, char *);
int otp_parse_stddict (OtpKey key, char *);
int otp_parse_altdict (OtpKey key, char *, OtpAlgorithm *);

View File

@@ -46,7 +46,6 @@ RCSID("$Id$");
void *
otp_db_open ()
{
DBM *ret;
int lock;
do {

View File

@@ -80,7 +80,6 @@ otp_md_init (OtpKey key,
{
char *p;
int len;
int i;
len = strlen(pwd) + strlen(seed);
p = malloc (len + 1);

View File

@@ -41,6 +41,7 @@
RCSID("$Id$");
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

View File

@@ -41,6 +41,7 @@
RCSID("$Id$");
#endif
#include <stdio.h>
#include "otp.h"
static char *std_dict[] =

View File

@@ -41,6 +41,9 @@
RCSID("$Id$");
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

View File

@@ -175,4 +175,14 @@ void mini_inetd (int port);
#define LOG_AUTHPRIV LOG_AUTH
#endif
#ifdef NEED_OPTARG_DECLARATION
extern char *optarg;
#endif
#ifdef NEED_OPTIND_DECLARATION
extern int optind;
#endif
#ifdef NEED_OPTERR_DECLARATION
extern int opterr;
#endif
#endif /* __ROKEN_H__ */

View File

@@ -175,4 +175,14 @@ void mini_inetd (int port);
#define LOG_AUTHPRIV LOG_AUTH
#endif
#ifdef NEED_OPTARG_DECLARATION
extern char *optarg;
#endif
#ifdef NEED_OPTIND_DECLARATION
extern int optind;
#endif
#ifdef NEED_OPTERR_DECLARATION
extern int opterr;
#endif
#endif /* __ROKEN_H__ */