Browse Source

Fix an MSVC warning in onion.h prototypes

Nick Mathewson 11 years ago
parent
commit
1af89ce540
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/or/onion.h

+ 2 - 2
src/or/onion.h

@@ -101,9 +101,9 @@ typedef struct extended_cell_t {
 
 
 int create_cell_parse(create_cell_t *cell_out, const cell_t *cell_in);
 int create_cell_parse(create_cell_t *cell_out, const cell_t *cell_in);
 int created_cell_parse(created_cell_t *cell_out, const cell_t *cell_in);
 int created_cell_parse(created_cell_t *cell_out, const cell_t *cell_in);
-int extend_cell_parse(extend_cell_t *cell_out, uint8_t command,
+int extend_cell_parse(extend_cell_t *cell_out, const uint8_t command,
                       const uint8_t *payload_in, size_t payload_len);
                       const uint8_t *payload_in, size_t payload_len);
-int extended_cell_parse(extended_cell_t *cell_out, uint8_t command,
+int extended_cell_parse(extended_cell_t *cell_out, const uint8_t command,
                         const uint8_t *payload_in, size_t payload_len);
                         const uint8_t *payload_in, size_t payload_len);
 
 
 int create_cell_format(cell_t *cell_out, const create_cell_t *cell_in);
 int create_cell_format(cell_t *cell_out, const create_cell_t *cell_in);