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
efb1b482
Commit
efb1b482
authored
Oct 28, 2013
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed change from v1 of auth file to v2
parent
14fd4006
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
interface.c
interface.c
+3
-0
loop.c
loop.c
+5
-8
No files found.
interface.c
View file @
efb1b482
...
...
@@ -762,6 +762,9 @@ void print_service_message (struct message *M) {
push_color
(
COLOR_GREY
);
push_color
(
COLOR_MAGENTA
);
if
(
msg_num_mode
)
{
printf
(
"%d "
,
M
->
id
);
}
print_date
(
M
->
date
);
pop_color
();
printf
(
" "
);
...
...
loop.c
View file @
efb1b482
...
...
@@ -270,13 +270,11 @@ int loop (void) {
if
(
verbosity
)
{
logprintf
(
"DC_info: %d new DC got
\n
"
,
new_dc_num
);
}
if
(
new_dc_num
)
{
int
i
;
for
(
i
=
0
;
i
<=
MAX_DC_NUM
;
i
++
)
if
(
DC_list
[
i
]
&&
!
DC_list
[
i
]
->
auth_key_id
)
{
dc_authorize
(
DC_list
[
i
]);
assert
(
DC_list
[
i
]
->
auth_key_id
);
write_auth_file
();
}
int
i
;
for
(
i
=
0
;
i
<=
MAX_DC_NUM
;
i
++
)
if
(
DC_list
[
i
]
&&
!
DC_list
[
i
]
->
auth_key_id
)
{
dc_authorize
(
DC_list
[
i
]);
assert
(
DC_list
[
i
]
->
auth_key_id
);
write_auth_file
();
}
if
(
auth_state
==
100
)
{
...
...
@@ -362,7 +360,6 @@ int loop (void) {
}
}
int
i
;
for
(
i
=
0
;
i
<=
MAX_DC_NUM
;
i
++
)
if
(
DC_list
[
i
]
&&
!
DC_list
[
i
]
->
has_auth
)
{
do_export_auth
(
i
);
do_import_auth
(
i
);
...
...
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