Browse Source

r9317@totoro: nickm | 2006-11-13 22:45:33 -0500
Fix some more mipspro warnings. Nothing should remain excecpt "conversion from pointer to same-sized integral type."


svn:r8950

Nick Mathewson 17 years ago
parent
commit
ad1f019110
2 changed files with 5 additions and 2 deletions
  1. 2 2
      src/or/buffers.c
  2. 3 0
      src/or/directory.c

+ 2 - 2
src/or/buffers.c

@@ -187,7 +187,7 @@ buf_resize(buf_t *buf, size_t new_capacity)
        * to move the start portion back by that many bytes.
        */
       memmove(buf->cur-(buf->len-new_capacity), buf->cur,
-              buf->len-offset);
+              (size_t)(buf->len-offset));
       offset -= (buf->len-new_capacity);
     } else {
       /* The data doesn't wrap around, but it does extend beyond the new
@@ -232,7 +232,7 @@ buf_resize(buf_t *buf, size_t new_capacity)
      * end portion forward by that many bytes.
      */
     memmove(buf->cur+(new_capacity-buf->len), buf->cur,
-            buf->len-offset);
+            (size_t)(buf->len-offset));
     buf->cur += new_capacity-buf->len;
   }
   buf->memsize = buf->len = new_capacity;

+ 3 - 0
src/or/directory.c

@@ -907,6 +907,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
                 "we are %d seconds skewed.  (That's okay.)", delta);
     }
   }
+  (void) skewed; /* skewed isn't used yet. */
 
   if (status_code == 503) {
     log_info(LD_DIR,"Received http status code %d (%s) from server "
@@ -1576,6 +1577,7 @@ directory_handle_command_get(dir_connection_t *conn, char *headers,
       return 0;
     }
     // note_request(request_type,dlen);
+    (void) request_type;
     write_http_response_header(conn, -1,
                  deflated?"application/octet_stream":"text/plain",
                  deflated?"deflate":NULL,
@@ -1622,6 +1624,7 @@ directory_handle_command_get(dir_connection_t *conn, char *headers,
     } else {
       request_type = "/tor/server/?";
     }
+    (void) request_type; /* usable for note_request. */
     if (!strcmpstart(url, "/tor/server/d/"))
       conn->dir_spool_src = DIR_SPOOL_SERVER_BY_DIGEST;
     else