mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00:00
BeOS fixes
This commit is contained in:
parent
2006882927
commit
1636fc70d2
5 changed files with 7 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
|
||||
TRInfoWindow::TRInfoWindow(tr_stat_t *status, tr_info_t *info, char *folder) : BWindow(BRect(0, 0, 250, 175), "Info",
|
||||
TRInfoWindow::TRInfoWindow(tr_stat_t *status, tr_info_t *info, const char *folder) : BWindow(BRect(0, 0, 250, 175), "Info",
|
||||
B_FLOATING_WINDOW, B_ASYNCHRONOUS_CONTROLS | /*B_NOT_RESIZABLE*/ B_NOT_ZOOMABLE,
|
||||
B_CURRENT_WORKSPACE)
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
class TRInfoWindow : public BWindow {
|
||||
public:
|
||||
TRInfoWindow(tr_stat_t *status, tr_info_t *info, char *folder);
|
||||
TRInfoWindow(tr_stat_t *status, tr_info_t *info, const char *folder);
|
||||
~TRInfoWindow();
|
||||
|
||||
virtual void FrameResized(float width, float height);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef TR_BENCODE_H
|
||||
#define TR_BENCODE_H 1
|
||||
|
||||
#include <stdint.h> /* for int64_t */
|
||||
#include <inttypes.h> /* for int64_t */
|
||||
#include <string.h> /* for memset */
|
||||
|
||||
typedef struct benc_val_s
|
||||
|
|
|
@ -168,9 +168,10 @@ int tr_ioWrite( tr_io_t * io, int index, int begin, int length,
|
|||
|
||||
if (reorder)
|
||||
{
|
||||
tr_dbg( "reorder pieces");
|
||||
int reorderRuns;
|
||||
|
||||
int reorderRuns = reorderPieces( io );
|
||||
tr_dbg( "reorder pieces");
|
||||
reorderRuns = reorderPieces( io );
|
||||
|
||||
if (io->slotsUsed == slotsUsedOld && reorderRuns > 0)
|
||||
tr_err( "reorder runs should have been 0 but was: %d", reorderRuns );
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef TR_DAEMON_IPC_H
|
||||
#define TR_DAEMON_IPC_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
/* yay for typedefs, we can't forward declare benc_val_t or tr_info_t
|
||||
like with structs */
|
||||
|
|
Loading…
Reference in a new issue