[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #3692 [Tor Client]: Fix compiler warnings in master



#3692: Fix compiler warnings in master
------------------------+---------------------------------------------------
 Reporter:  karsten     |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  minor       |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
 When compiling current master with `--enable-gcc-warnings` set, I get the
 following errors:

 {{{
 connection_edge.c: In function âconnection_edge_process_inbufâ:
 connection_edge.c:160: error: format â%ldâ expects type âlong intâ, but
 argument 7 has type âsize_tâ
 connection_edge.c: In function âconnection_ap_handshake_send_beginâ:
 connection_edge.c:2444: error: format â%ldâ expects type âlong intâ, but
 argument 5 has type âsize_tâ
 connection_edge.c:2444: error: format â%ldâ expects type âlong intâ, but
 argument 6 has type âsize_tâ
 }}}

 I changed `%ld` into `%d` in those lines in my sources which made the
 warnings go away.  But I'm not sure if that's the right fix, which is why
 I didn't attach a patch.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3692>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs