瀏覽代碼

fix most of pnx's warnings on irix64

svn:r13706
Roger Dingledine 17 年之前
父節點
當前提交
e7f3d6f76c
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      src/common/tortls.c
  2. 3 3
      src/or/or.h

+ 2 - 2
src/common/tortls.c

@@ -85,8 +85,8 @@ struct tor_tls_t {
                                   * of the connection protocol (client sends
                                   * different cipher list, server sends only
                                   * one certificate). */
-  int got_renegotiate:1; /**< True iff we should call negotiated_callback
-                          * when we're done reading. */
+ /** True iff we should call negotiated_callback when we're done reading. */
+  unsigned int got_renegotiate:1;
   size_t wantwrite_n; /**< 0 normally, >0 if we returned wantwrite last
                        * time. */
   /** Last values retrieved from BIO_number_read()/write(); see

+ 3 - 3
src/or/or.h

@@ -995,14 +995,14 @@ typedef struct edge_connection_t {
   uint8_t num_socks_retries;
 
   /** True iff this connection is for a dns request only. */
-  unsigned int is_dns_request : 1;
+  unsigned int is_dns_request:1;
 
   /** True iff this stream must attach to a one-hop circuit (e.g. for
    * begin_dir). */
-  int want_onehop:1;
+  unsigned int want_onehop:1;
   /** True iff this stream should use a BEGIN_DIR relay command to establish
    * itself rather than BEGIN (either via onehop or via a whole circuit). */
-  int use_begindir:1;
+  unsigned int use_begindir:1;
 
   /** If this is a DNSPort connection, this field holds the pending DNS
    * request that we're going to try to answer.  */