mirror of
https://github.com/transmission/transmission
synced 2025-03-05 19:18:19 +00:00
(trunk daemon) change a couple of flags' types from int to tr_bool. whoo!
This commit is contained in:
parent
05fa587eb3
commit
24d24e5bc6
1 changed files with 5 additions and 6 deletions
|
@ -152,7 +152,7 @@ numarg( const char * arg )
|
||||||
|
|
||||||
static char * reqs[256]; /* arbitrary max */
|
static char * reqs[256]; /* arbitrary max */
|
||||||
static int reqCount = 0;
|
static int reqCount = 0;
|
||||||
static int debug = 0;
|
static tr_bool debug = 0;
|
||||||
static char * auth = NULL;
|
static char * auth = NULL;
|
||||||
static char * netrc = NULL;
|
static char * netrc = NULL;
|
||||||
static char * sessionId = NULL;
|
static char * sessionId = NULL;
|
||||||
|
@ -373,11 +373,10 @@ static const char * list_keys[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
readargs( int argc,
|
readargs( int argc, const char ** argv )
|
||||||
const char ** argv )
|
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
int addingTorrents = 0;
|
tr_bool addingTorrents = FALSE;
|
||||||
int status = EXIT_SUCCESS;
|
int status = EXIT_SUCCESS;
|
||||||
char id[4096];
|
char id[4096];
|
||||||
const char * optarg;
|
const char * optarg;
|
||||||
|
@ -419,12 +418,12 @@ readargs( int argc,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'a':
|
case 'a':
|
||||||
addingTorrents = 1;
|
addingTorrents = TRUE;
|
||||||
addArg = FALSE;
|
addArg = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'b':
|
case 'b':
|
||||||
debug = 1;
|
debug = TRUE;
|
||||||
addArg = FALSE;
|
addArg = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue