소스 검색

Remove a redundant typedef in proto_ext_or.h

Roger Dingledine 7 년 전
부모
커밋
0317eb143e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/proto/proto_ext_or.h

+ 2 - 2
src/core/proto/proto_ext_or.h

@@ -10,11 +10,11 @@
 struct buf_t;
 
 /** A parsed Extended ORPort message. */
-typedef struct ext_or_cmd_t {
+struct ext_or_cmd_t {
   uint16_t cmd; /** Command type */
   uint16_t len; /** Body length */
   char body[FLEXIBLE_ARRAY_MEMBER]; /** Message body */
-} ext_or_cmd_t;
+};
 
 int fetch_ext_or_command_from_buf(struct buf_t *buf,
                                   struct ext_or_cmd_t **out);