[or-cvs] Use a stricter set of warnings; make them all pass.
Nick Mathewson
nickm at seul.org
Tue Nov 2 03:02:19 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv3912/src/common
Modified Files:
crypto.c fakepoll.c test.h
Log Message:
Use a stricter set of warnings; make them all pass.
Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- crypto.c 2 Nov 2004 02:28:42 -0000 1.119
+++ crypto.c 2 Nov 2004 03:02:17 -0000 1.120
@@ -93,6 +93,13 @@
DH *dh;
};
+/* Prototypes for functions only used by tortls.c */
+crypto_pk_env_t *_crypto_new_pk_env_rsa(RSA *rsa);
+RSA *_crypto_pk_env_get_rsa(crypto_pk_env_t *env);
+EVP_PKEY *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env, int private);
+DH *_crypto_dh_env_get_dh(crypto_dh_env_t *dh);
+
+
/** Return the number of bytes added by padding method <b>padding</b>.
*/
static INLINE int
Index: fakepoll.c
===================================================================
RCS file: /home/or/cvsroot/src/common/fakepoll.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- fakepoll.c 12 Oct 2004 19:09:40 -0000 1.33
+++ fakepoll.c 2 Nov 2004 03:02:17 -0000 1.34
@@ -26,12 +26,6 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#if _MSC_VER > 1300
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#elif defined(_MSC_VER)
-#include <winsock.h>
-#endif
#include <assert.h>
#include <stdlib.h>
Index: test.h
===================================================================
RCS file: /home/or/cvsroot/src/common/test.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- test.h 10 May 2004 07:54:13 -0000 1.13
+++ test.h 2 Nov 2004 03:02:17 -0000 1.14
@@ -108,7 +108,7 @@
#define test_memeq(expr1, expr2, len) \
STMT_BEGIN \
- void *v1=(expr1), *v2=(expr2); \
+ const void *v1=(expr1), *v2=(expr2); \
if(!memcmp(v1,v2,(len))) { printf("."); fflush(stdout); } else { \
have_failed = 1; \
printf("\nFile %s: line %d (%s): Assertion failed: (%s==%s)\n", \
More information about the tor-commits
mailing list