Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
2052f4b3
Commit
2052f4b3
authored
Jul 30, 2015
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor updates.
parent
2cc75016
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
loop.c
loop.c
+7
-0
main.c
main.c
+5
-1
tgl
tgl
+1
-1
No files found.
loop.c
View file @
2052f4b3
...
...
@@ -75,6 +75,7 @@
int
verbosity
;
extern
int
readline_disabled
;
extern
char
*
bot_hash
;
extern
int
bot_mode
;
int
binlog_read
;
...
...
@@ -235,6 +236,12 @@ void do_get_string (struct tgl_state *TLS) {
void
do_get_values
(
struct
tgl_state
*
TLS
,
enum
tgl_value_type
type
,
const
char
*
prompt
,
int
num_values
,
void
(
*
callback
)(
struct
tgl_state
*
TLS
,
const
char
*
string
[],
void
*
arg
),
void
*
arg
)
{
if
(
type
==
tgl_bot_hash
&&
bot_hash
)
{
assert
(
num_values
==
1
);
one_string_results
[
0
]
=
bot_hash
;
callback
(
TLS
,
(
void
*
)
one_string_results
,
arg
);
return
;
}
one_string_cb
=
callback
;
one_string_num
=
0
;
one_string_total_args
=
num_values
;
...
...
main.c
View file @
2052f4b3
...
...
@@ -557,6 +557,7 @@ static void sighup_handler (const int sig) {
char
*
set_user_name
;
char
*
set_group_name
;
int
accept_any_tcp
;
char
*
bot_hash
;
int
change_user_group
()
{
char
*
username
=
set_user_name
;
...
...
@@ -642,7 +643,7 @@ void args_parse (int argc, char **argv) {
{
"exec"
,
required_argument
,
0
,
'e'
},
{
"disable-names"
,
no_argument
,
0
,
'I'
},
{
"enable-ipv6"
,
no_argument
,
0
,
'6'
},
{
"bot"
,
no
_argument
,
0
,
'b'
},
{
"bot"
,
optional
_argument
,
0
,
'b'
},
{
"help"
,
no_argument
,
0
,
'h'
},
{
"accept-any-tcp"
,
no_argument
,
0
,
1001
},
{
"disable-link-preview"
,
no_argument
,
0
,
1002
},
...
...
@@ -672,6 +673,9 @@ void args_parse (int argc, char **argv) {
switch
(
opt
)
{
case
'b'
:
bot_mode
++
;
if
(
optarg
)
{
bot_hash
=
optarg
;
}
break
;
case
1000
:
tgl_allocator
=
&
tgl_allocator_debug
;
...
...
tgl
@
418f81be
Subproject commit
e279fef0dc34c12d02e88f82a2fbde5917bc9c56
Subproject commit
418f81be448fdebb04c3809795f8c160ee13280c
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment