Changeset 10590


Ignore:
Timestamp:
May 1, 2010, 1:00:18 PM (11 years ago)
Author:
livings124
Message:

(1.9x) compile on Mac again; #3104 tr-dht.c: signed port number

Location:
branches/1.9x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/Transmission.xcodeproj/project.pbxproj

    r9991 r10590  
    221221                A2DA362B0CBC674900C2ED41 /* InfoFiles.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DA36280CBC674900C2ED41 /* InfoFiles.png */; };
    222222                A2DA362C0CBC674900C2ED41 /* InfoPeers.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DA36290CBC674900C2ED41 /* InfoPeers.png */; };
     223                A2DDA068118C5CEB009E7F37 /* connecthostport.c in Sources */ = {isa = PBXBuildFile; fileRef = A2DDA067118C5CEB009E7F37 /* connecthostport.c */; };
     224                A2DDA06A118C5CF2009E7F37 /* connecthostport.h in Headers */ = {isa = PBXBuildFile; fileRef = A2DDA069118C5CF2009E7F37 /* connecthostport.h */; };
    223225                A2DF37070C220D03006523C1 /* CreatorWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = A2DF37050C220D03006523C1 /* CreatorWindowController.m */; };
    224226                A2DF58580DE4B2B0000795D5 /* JSON_parser.c in Sources */ = {isa = PBXBuildFile; fileRef = A2DF576A0DE468C6000795D5 /* JSON_parser.c */; };
     
    725727                A2DC1E4B10E6731000DFB18C /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = macosx/zh_CN.lproj/MainMenu.xib; sourceTree = "<group>"; };
    726728                A2DC1E4C10E6731000DFB18C /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = macosx/zh_CN.lproj/PrefsWindow.xib; sourceTree = "<group>"; };
     729                A2DDA067118C5CEB009E7F37 /* connecthostport.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = connecthostport.c; path = "third-party/miniupnp/connecthostport.c"; sourceTree = "<group>"; };
     730                A2DDA069118C5CF2009E7F37 /* connecthostport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = connecthostport.h; path = "third-party/miniupnp/connecthostport.h"; sourceTree = "<group>"; };
    727731                A2DF37040C220D03006523C1 /* CreatorWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CreatorWindowController.h; path = macosx/CreatorWindowController.h; sourceTree = "<group>"; };
    728732                A2DF37050C220D03006523C1 /* CreatorWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CreatorWindowController.m; path = macosx/CreatorWindowController.m; sourceTree = "<group>"; };
     
    13181322                        isa = PBXGroup;
    13191323                        children = (
     1324                                A2DDA067118C5CEB009E7F37 /* connecthostport.c */,
    13201325                                BE1183610CE160D50002D0F3 /* igd_desc_parse.c */,
    13211326                                BE1183620CE160D50002D0F3 /* minixml.c */,
     
    13271332                                BE1183680CE160D50002D0F3 /* miniupnpc.c */,
    13281333                                BE11834D0CE160C50002D0F3 /* bsdqueue.h */,
     1334                                A2DDA069118C5CF2009E7F37 /* connecthostport.h */,
    13291335                                BE11834E0CE160C50002D0F3 /* declspec.h */,
    13301336                                BE11834F0CE160C50002D0F3 /* igd_desc_parse.h */,
     
    15271533                                A254853C0EB66CD4004539DA /* codelength.h in Headers */,
    15281534                                A2F8CD430F3D0F4A00DB356A /* miniupnpcstrings.h in Headers */,
     1535                                A2DDA06A118C5CF2009E7F37 /* connecthostport.h in Headers */,
    15291536                        );
    15301537                        runOnlyForDeploymentPostprocessing = 0;
     
    20532060                                BE11836F0CE160D50002D0F3 /* upnpcommands.c in Sources */,
    20542061                                BE1183700CE160D50002D0F3 /* miniupnpc.c in Sources */,
     2062                                A2DDA068118C5CEB009E7F37 /* connecthostport.c in Sources */,
    20552063                        );
    20562064                        runOnlyForDeploymentPostprocessing = 0;
  • branches/1.9x/libtransmission/tr-dht.c

    r10201 r10590  
    102102
    103103static void
    104 bootstrap_from_name( const char *name, short int port, int af )
     104bootstrap_from_name( const char *name, tr_port port, int af )
    105105{
    106106    struct addrinfo hints, *info, *infop;
     
    112112    hints.ai_family = af;
    113113    /* No, just passing p + 1 to gai won't work. */
    114     tr_snprintf(pp, sizeof(pp), "%d", port);
     114    tr_snprintf(pp, sizeof(pp), "%d", (int)port);
    115115
    116116    rc = getaddrinfo(name, pp, &hints, &info);
Note: See TracChangeset for help on using the changeset viewer.