Commit 5b6d7f10 authored by Nick Mathewson's avatar Nick Mathewson 🥔
Browse files

r13143@catbus: nickm | 2007-06-01 16:43:40 -0400

 Try to fix some mipspro compiler warnings. There will still be some left.


svn:r10444
parent 3431377d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ mp_pool_new(size_t item_size, size_t chunk_capacity)

  /* First, we figure out how much space to allow per item.  We'll want to
   * use make sure we have enough for the overhead plus the item size. */
  alloc_size = STRUCT_OFFSET(mp_allocated_t, u.mem) + item_size;
  alloc_size = (size_t)(STRUCT_OFFSET(mp_allocated_t, u.mem) + item_size);
  /* If the item_size is less than sizeof(next_free), we need to make
   * the allocation bigger. */
  if (alloc_size < sizeof(mp_allocated_t))
+1 −1
Original line number Diff line number Diff line
@@ -2351,7 +2351,7 @@ parse_authority_type_from_list(smartlist_t *list, authority_type_t *auth,
                               int compatible)
{
  tor_assert(auth);
  *auth = 0;
  *auth = NO_AUTHORITY;
  SMARTLIST_FOREACH(list, const char *, string, {
    if (!strcasecmp(string, "v1"))
      *auth |= V1_AUTHORITY;
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
    evdns_server_request_respond(req, DNS_ERR_SERVERFAILED);
    return;
  }
  (void) addrlen;
  sa = (struct sockaddr*) &addr;
  if (sa->sa_family != AF_INET) {
    /* XXXX020 Handle IPV6 */
+3 −5
Original line number Diff line number Diff line
@@ -525,10 +525,8 @@ connection_edge_send_command(edge_connection_t *fromconn,
                             size_t payload_len)
{
  /* XXXX NM Split this function into a separate versions per circuit type? */
  crypt_path_t *cpath_layer;
  circuit_t *circ;
  tor_assert(fromconn);
  cpath_layer = fromconn ? fromconn->cpath_layer : NULL;
  circ = fromconn->on_circuit;

  if (fromconn->_base.marked_for_close) {
@@ -1890,14 +1888,14 @@ void
circuit_clear_cell_queue(circuit_t *circ, or_connection_t *orconn)
{
  cell_queue_t *queue;
  int streams_blocked;
  // int streams_blocked; // XXXX020 use this for something, or remove it.
  if (circ->n_conn == orconn) {
    queue = &circ->n_conn_cells;
    streams_blocked = circ->streams_blocked_on_n_conn;
    // streams_blocked = circ->streams_blocked_on_n_conn;
  } else {
    or_circuit_t *orcirc = TO_OR_CIRCUIT(circ);
    queue = &orcirc->p_conn_cells;
    streams_blocked = circ->streams_blocked_on_p_conn;
    // streams_blocked = circ->streams_blocked_on_p_conn;
  }

  if (queue->n)
+1 −1
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ router_reload_router_list_impl(int extrainfo)
      router_load_extrainfo_from_string(contents, NULL,SAVED_IN_JOURNAL, NULL);
    else
      router_load_routers_from_string(contents, NULL, SAVED_IN_JOURNAL, NULL);
    stats->journal_len = st.st_size;
    stats->journal_len = (size_t) st.st_size;
    tor_free(contents);
  }