Changeset 6181
- Timestamp:
- Jun 13, 2008, 9:08:16 PM (15 years ago)
- Location:
- branches/1.2x
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2x/gtk/main.c
r5761 r6181 619 619 } 620 620 621 #if 0 621 622 /* since there are no buttons in the dialog, gtk tries to 622 623 * select one of the labels, which looks ugly... so force … … 630 631 gtk_container_foreach( GTK_CONTAINER(w), deselectLabels, NULL ); 631 632 } 633 #endif 632 634 633 635 static void -
branches/1.2x/libtransmission/natpmp.c
r5620 r6181 127 127 logVal( "readnatpmpresponseorretry", val ); 128 128 if( val >= 0 ) { 129 tr_ninf( getKey(), _( "Found public address \"%s\"" ), inet_ntoa( response.p ublicaddress.addr ) );129 tr_ninf( getKey(), _( "Found public address \"%s\"" ), inet_ntoa( response.pnu.publicaddress.addr ) ); 130 130 nat->state = TR_NATPMP_IDLE; 131 131 } else if( val != NATPMP_TRYAGAIN ) { … … 189 189 nat->isMapped = 1; 190 190 nat->renewTime = time( NULL ) + LIFETIME_SECS; 191 nat->port = resp. newportmapping.privateport;191 nat->port = resp.pnu.newportmapping.privateport; 192 192 tr_ninf( getKey(), _( "Port %d forwarded successfully" ), nat->port ); 193 193 } else if( val != NATPMP_TRYAGAIN ) { -
branches/1.2x/libtransmission/torrent.c
r5781 r6181 843 843 void tr_torrentAvailability( const tr_torrent * tor, int8_t * tab, int size ) 844 844 { 845 returntr_peerMgrTorrentAvailability( tor->handle->peerMgr,846 847 845 tr_peerMgrTorrentAvailability( tor->handle->peerMgr, 846 tor->info.hash, 847 tab, size ); 848 848 } 849 849 -
branches/1.2x/third-party/libnatpmp/README
r5743 r6181 1 1 libnatpmp is written by Thomas Bernard. 2 2 Its homepage is http://miniupnp.tuxfamily.org/libnatpmp.html 3 This code is from the libnatpmp-20080 428snapshot3 This code is from the libnatpmp-20080529 snapshot 4 4 -
branches/1.2x/third-party/libnatpmp/natpmp.c
r5743 r6181 1 /* $Id: natpmp.c,v 1. 6 2008/04/28 02:58:34nanard Exp $ */1 /* $Id: natpmp.c,v 1.7 2008/05/29 08:06:01 nanard Exp $ */ 2 2 /* libnatpmp 3 3 * Copyright (c) 2007-2008, Thomas BERNARD <miniupnp@free.fr> … … 204 204 if(buf[1] == 128) 205 205 //response->publicaddress.addr = *((uint32_t *)(buf + 8)); 206 response->p ublicaddress.addr.s_addr = *((uint32_t *)(buf + 8));206 response->pnu.publicaddress.addr.s_addr = *((uint32_t *)(buf + 8)); 207 207 else { 208 response-> newportmapping.privateport = ntohs(*((uint16_t *)(buf + 8)));209 response-> newportmapping.mappedpublicport = ntohs(*((uint16_t *)(buf + 10)));210 response-> newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));208 response->pnu.newportmapping.privateport = ntohs(*((uint16_t *)(buf + 8))); 209 response->pnu.newportmapping.mappedpublicport = ntohs(*((uint16_t *)(buf + 10))); 210 response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12))); 211 211 } 212 212 n = 0; -
branches/1.2x/third-party/libnatpmp/natpmp.h
r5743 r6181 1 /* $Id: natpmp.h,v 1. 8 2008/04/28 02:58:34nanard Exp $ */1 /* $Id: natpmp.h,v 1.9 2008/05/29 08:06:01 nanard Exp $ */ 2 2 /* libnatpmp 3 3 * Copyright (c) 2007-2008, Thomas BERNARD <miniupnp@free.fr> … … 53 53 uint32_t lifetime; 54 54 } newportmapping; 55 } ;55 } pnu; 56 56 } natpmpresp_t; 57 57
Note: See TracChangeset
for help on using the changeset viewer.