mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
get rid of a warning
This commit is contained in:
parent
87f53cba5b
commit
e106876393
3 changed files with 5 additions and 6 deletions
|
@ -353,7 +353,7 @@
|
||||||
4DFBC2DD09C0970D00D5C571 /* Torrent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Torrent.h; path = macosx/Torrent.h; sourceTree = "<group>"; };
|
4DFBC2DD09C0970D00D5C571 /* Torrent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Torrent.h; path = macosx/Torrent.h; sourceTree = "<group>"; };
|
||||||
4DFBC2DE09C0970D00D5C571 /* Torrent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Torrent.m; path = macosx/Torrent.m; sourceTree = "<group>"; };
|
4DFBC2DE09C0970D00D5C571 /* Torrent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Torrent.m; path = macosx/Torrent.m; sourceTree = "<group>"; };
|
||||||
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = Info.plist; path = macosx/Info.plist; sourceTree = "<group>"; };
|
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = Info.plist; path = macosx/Info.plist; sourceTree = "<group>"; };
|
||||||
8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
A200B8390A2263BA007BBB1E /* InfoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoWindowController.h; path = macosx/InfoWindowController.h; sourceTree = "<group>"; };
|
A200B8390A2263BA007BBB1E /* InfoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoWindowController.h; path = macosx/InfoWindowController.h; sourceTree = "<group>"; };
|
||||||
A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = "<group>"; };
|
A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = "<group>"; };
|
||||||
A2041D520C9AC523000ACFFB /* Lock.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = Lock.tiff; path = macosx/Images/Lock.tiff; sourceTree = "<group>"; };
|
A2041D520C9AC523000ACFFB /* Lock.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = Lock.tiff; path = macosx/Images/Lock.tiff; sourceTree = "<group>"; };
|
||||||
|
|
|
@ -109,8 +109,8 @@ typedef enum
|
||||||
- (float) actualStopRatio; //returns INVALID if will not stop
|
- (float) actualStopRatio; //returns INVALID if will not stop
|
||||||
- (float) progressStopRatio;
|
- (float) progressStopRatio;
|
||||||
|
|
||||||
- (int) speedMode: (BOOL) upload;
|
- (tr_speedlimit) speedMode: (BOOL) upload;
|
||||||
- (void) setSpeedMode: (int) mode upload: (BOOL) upload;
|
- (void) setSpeedMode: (tr_speedlimit) mode upload: (BOOL) upload;
|
||||||
- (int) speedLimit: (BOOL) upload;
|
- (int) speedLimit: (BOOL) upload;
|
||||||
- (void) setSpeedLimit: (int) limit upload: (BOOL) upload;
|
- (void) setSpeedLimit: (int) limit upload: (BOOL) upload;
|
||||||
|
|
||||||
|
|
|
@ -568,13 +568,12 @@ static int static_lastid = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning use enum value
|
- (tr_speedlimit) speedMode: (BOOL) upload
|
||||||
- (int) speedMode: (BOOL) upload
|
|
||||||
{
|
{
|
||||||
return tr_torrentGetSpeedMode(fHandle, upload ? TR_UP : TR_DOWN);
|
return tr_torrentGetSpeedMode(fHandle, upload ? TR_UP : TR_DOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setSpeedMode: (int) mode upload: (BOOL) upload
|
- (void) setSpeedMode: (tr_speedlimit) mode upload: (BOOL) upload
|
||||||
{
|
{
|
||||||
tr_torrentSetSpeedMode(fHandle, upload ? TR_UP : TR_DOWN, mode);
|
tr_torrentSetSpeedMode(fHandle, upload ? TR_UP : TR_DOWN, mode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue