Commit ca834335 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

resolve warnings


svn:r89
parent fdb31225
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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;
  }
+1 −1
Original line number Diff line number Diff line
@@ -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 */
+2 −2
Original line number Diff line number Diff line
@@ -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];