resolve warnings

svn:r89
This commit is contained in:
Roger Dingledine 2002-09-03 19:03:16 +00:00
parent fdb31225b7
commit ca834335da
4 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ RETURN VALUE: 0 on success, non-zero on error
int Verbose;
int code;
poptContext optCon;
char *cmd;
const char *cmd;
struct poptOption opt_tab[] =
{
{ "APPort", 'a', POPT_ARG_INT, &options->APPort,

View File

@ -522,7 +522,7 @@ int connection_encrypt_cell(cell_t *cellp, connection_t *conn) {
printf("\n");
#endif
if(crypto_cipher_encrypt(conn->f_crypto, (char *)cellp, sizeof(cell_t), &newcell)) {
if(crypto_cipher_encrypt(conn->f_crypto, (char *)cellp, sizeof(cell_t), (char *)&newcell)) {
log(LOG_ERR,"Could not encrypt cell for connection %s:%u.",conn->address,conn->port);
return -1;
}

View File

@ -32,7 +32,7 @@ int connection_op_process_inbuf(connection_t *conn) {
int op_handshake_process_keys(connection_t *conn) {
int retval;
int x;
//int x;
unsigned char iv[16];
/* key exchange message */

View File

@ -111,7 +111,7 @@ int connection_or_finished_flushing(connection_t *conn) {
/*********************/
void conn_or_init_crypto(connection_t *conn) {
int x;
//int x;
unsigned char iv[16];
assert(conn);
@ -257,7 +257,7 @@ connection_t *connection_or_connect_as_op(routerinfo_t *router, crypto_pk_env_t
}
int or_handshake_op_send_keys(connection_t *conn) {
int x;
//int x;
uint32_t bandwidth = DEFAULT_BANDWIDTH_OP;
unsigned char message[20]; /* bandwidth(32bits), forward key(64bits), backward key(64bits) */
unsigned char cipher[128];