diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-20 22:50:42 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-20 22:50:42 +0000 |
commit | 95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea (patch) | |
tree | 6bdbca71df2722da6b3c27c8cc2a0b00115edaa9 /apps | |
parent | f36cd05b22a587e552c97797b54fd07bc0762446 (diff) |
Fix lots of warnings.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ca.c | 2 | ||||
-rw-r--r-- | apps/nseq.c | 1 | ||||
-rw-r--r-- | apps/req.c | 2 | ||||
-rw-r--r-- | apps/s_socket.c | 5 |
4 files changed, 6 insertions, 4 deletions
@@ -64,6 +64,7 @@ #include <sys/types.h> #include <sys/stat.h> #include "apps.h" +#include "conf.h" #include "bio.h" #include "err.h" #include "bn.h" @@ -73,7 +74,6 @@ #include "x509v3.h" #include "objects.h" #include "pem.h" -#include "conf.h" #ifndef W_OK #include <sys/file.h> diff --git a/apps/nseq.c b/apps/nseq.c index 3c70e4d2be..a36f29f518 100644 --- a/apps/nseq.c +++ b/apps/nseq.c @@ -57,6 +57,7 @@ */ #include <stdio.h> +#include <string.h> #include "pem.h" #include "err.h" #include "apps.h" diff --git a/apps/req.c b/apps/req.c index ce7e318777..69f371697b 100644 --- a/apps/req.c +++ b/apps/req.c @@ -826,7 +826,7 @@ end: static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, int attribs) { int ret=0,i; - unsigned char *p,*q; + char *p,*q; X509_REQ_INFO *ri; char buf[100]; int nid,min,max; diff --git a/apps/s_socket.c b/apps/s_socket.c index 19b9abbba6..9c08ec0985 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -208,7 +208,8 @@ int init_client_ip(int *sock, unsigned char ip[4], int port) int nbio_sock_error(int sock) { - int j,i,size; + int j,i; + unsigned int size; size=sizeof(int); i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(char *)&j,&size); @@ -359,7 +360,7 @@ int do_accept(int acc_sock, int *sock, char **host) int ret,i; struct hostent *h1,*h2; static struct sockaddr_in from; - int len; + unsigned int len; /* struct linger ling; */ if (!sock_init()) return(0); |